#02166D

#02166d ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#02166d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 8.63% green and 42.75% blue; printed in CMYK it uses 98.17% cyan, 79.82% magenta, 0% yellow and 57.25% black. Its hue angle is 228.79°, with 96.4% saturation and 21.76% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and luxury branding. White text on this color reaches a contrast ratio of 15.69:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 1.77.

Description generated from the measured properties of this color.

Conversions of #02166d into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#000066
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0169

Readable text 15.69:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.34:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #232323 ≈ 0.003% of males
Achromatomaly #1a1f4c ≈ 0.001% of males
Protanopia #00286f ≈ 1.01% of males
Deuteranopia #001e6c ≈ 1.27% of males
Tritanopia #003040 ≈ 0.0001% of males
Protanomaly #00226f ≈ 1.08% of males
Deuteranomaly #001b6c ≈ 4.63% of males
Tritanomaly #002856 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-02166d {
  color: #02166d;
}
Background
.bg-02166d {
  background-color: #02166d;
  color: #ffffff;
}
Border
.border-02166d {
  border: 2px solid #02166d;
}
CSS variables
:root {
  --color-primary: #02166d;
  --color-primary-rgb: 2 22 109;
  --color-primary-hsl: 229 96% 22%;
}
Gradient
.gradient-02166d {
  background: linear-gradient(135deg, #02166d, #24026d);
}
Colored shadow
.shadow-02166d {
  box-shadow: 0 8px 24px rgb(2 22 109 / 0.35);
}

Midnight Blue
#02166d  rgb(2, 22, 109)  hsl(229, 96%, 22%)  Midnight Blue
#6d5902  rgb(109, 89, 2)  hsl(49, 96%, 22%)  Field Drab
#6d0216  rgb(109, 2, 22)  hsl(349, 96%, 22%)  Rosewood
#166d02  rgb(22, 109, 2)  hsl(109, 96%, 22%)  Pakistan Green