#0D166A

#0d166a ≈ Midnight Blue

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

#0d166a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 5.1% red, 8.63% green and 41.57% blue; printed in CMYK it uses 87.74% cyan, 79.25% magenta, 0% yellow and 58.43% black. Its hue angle is 234.19°, with 78.15% saturation and 23.33% 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.67:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 1.45.

Description generated from the measured properties of this color.

Conversions of #0d166a 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.017

Readable text 15.67: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 #1c1f4a ≈ 0.001% of males
Protanopia #00286c ≈ 1.01% of males
Deuteranopia #001f69 ≈ 1.27% of males
Tritanopia #002f3f ≈ 0.0001% of males
Protanomaly #00226b ≈ 1.08% of males
Deuteranomaly #001b69 ≈ 4.63% of males
Tritanomaly #002753 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0d166a {
  color: #0d166a;
}
Background
.bg-0d166a {
  background-color: #0d166a;
  color: #ffffff;
}
Border
.border-0d166a {
  border: 2px solid #0d166a;
}
CSS variables
:root {
  --color-primary: #0d166a;
  --color-primary-rgb: 13 22 106;
  --color-primary-hsl: 234 78% 23%;
}
Gradient
.gradient-0d166a {
  background: linear-gradient(135deg, #0d166a, #320d6a);
}
Colored shadow
.shadow-0d166a {
  box-shadow: 0 8px 24px rgb(13 22 106 / 0.35);
}

Midnight Blue
#0d166a  rgb(13, 22, 106)  hsl(234, 78%, 23%)  Midnight Blue
#6a610d  rgb(106, 97, 13)  hsl(54, 78%, 23%)  Field Drab
#6a0d16  rgb(106, 13, 22)  hsl(354, 78%, 23%)  Rosewood
#166a0d  rgb(22, 106, 13)  hsl(114, 78%, 23%)  Pakistan Green