#171D6B

#171d6b ≈ Midnight Blue

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

#171d6b is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 9.02% red, 11.37% green and 41.96% blue; printed in CMYK it uses 78.5% cyan, 72.9% magenta, 0% yellow and 58.04% black. Its hue angle is 235.71°, with 64.62% saturation and 25.49% 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 14.74: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 #171d6b into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#003366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0212

Readable text 14.74:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.42:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #282828 ≈ 0.003% of males
Achromatomaly #22244c ≈ 0.001% of males
Protanopia #002c6d ≈ 1.01% of males
Deuteranopia #00246a ≈ 1.27% of males
Tritanopia #003241 ≈ 0.0001% of males
Protanomaly #00276c ≈ 1.08% of males
Deuteranomaly #00216a ≈ 4.63% of males
Tritanomaly #002b55 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-171d6b {
  color: #171d6b;
}
Background
.bg-171d6b {
  background-color: #171d6b;
  color: #ffffff;
}
Border
.border-171d6b {
  border: 2px solid #171d6b;
}
CSS variables
:root {
  --color-primary: #171d6b;
  --color-primary-rgb: 23 29 107;
  --color-primary-hsl: 236 65% 25%;
}
Gradient
.gradient-171d6b {
  background: linear-gradient(135deg, #171d6b, #3b176b);
}
Colored shadow
.shadow-171d6b {
  box-shadow: 0 8px 24px rgb(23 29 107 / 0.35);
}

Midnight Blue
#171d6b  rgb(23, 29, 107)  hsl(236, 65%, 25%)  Midnight Blue
#6b6517  rgb(107, 101, 23)  hsl(56, 65%, 25%)  Field Drab
#6b171d  rgb(107, 23, 29)  hsl(356, 65%, 25%)  Rosewood
#1d6b17  rgb(29, 107, 23)  hsl(116, 65%, 25%)  Pakistan Green