#170C4E

#170c4e ≈ Midnight Blue

  • violet
  • Lightness: very low
  • Saturation: moderate
  • Cool

#170c4e is a color from the violet family, with very low lightness and moderate saturation. In the RGB model it is made of 9.02% red, 4.71% green and 30.59% blue; printed in CMYK it uses 70.51% cyan, 84.62% magenta, 0% yellow and 69.41% black. Its hue angle is 250°, with 73.33% saturation and 17.65% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 17.51:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.23.

Description generated from the measured properties of this color.

Conversions of #170c4e 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.01

Readable text 17.51:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.2:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #191919 ≈ 0.003% of males
Achromatomaly #181536 ≈ 0.001% of males
Protanopia #001c50 ≈ 1.01% of males
Deuteranopia #00174d ≈ 1.27% of males
Tritanopia #001f2d ≈ 0.0001% of males
Protanomaly #00174f ≈ 1.08% of males
Deuteranomaly #00134d ≈ 4.63% of males
Tritanomaly #05193c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-170c4e {
  color: #170c4e;
}
Background
.bg-170c4e {
  background-color: #170c4e;
  color: #ffffff;
}
Border
.border-170c4e {
  border: 2px solid #170c4e;
}
CSS variables
:root {
  --color-primary: #170c4e;
  --color-primary-rgb: 23 12 78;
  --color-primary-hsl: 250 73% 18%;
}
Gradient
.gradient-170c4e {
  background: linear-gradient(135deg, #170c4e, #380c4e);
}
Colored shadow
.shadow-170c4e {
  box-shadow: 0 8px 24px rgb(23 12 78 / 0.35);
}

Midnight Blue
#170c4e  rgb(23, 12, 78)  hsl(250, 73%, 18%)  Midnight Blue
#434e0c  rgb(67, 78, 12)  hsl(70, 73%, 18%)  Army Green
#4e170c  rgb(78, 23, 12)  hsl(10, 73%, 18%)  Caput Mortuum
#0c4e17  rgb(12, 78, 23)  hsl(130, 73%, 18%)  Lincoln Green