#2C174E

#2c174e ≈ Midnight Blue

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

#2c174e is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 17.25% red, 9.02% green and 30.59% blue; printed in CMYK it uses 43.59% cyan, 70.51% magenta, 0% yellow and 69.41% black. Its hue angle is 262.91°, with 54.46% saturation and 19.8% 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 15.68:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.09.

Description generated from the measured properties of this color.

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

Readable text 15.68: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 #271f39 ≈ 0.001% of males
Protanopia #002350 ≈ 1.01% of males
Deuteranopia #00234d ≈ 1.27% of males
Tritanopia #242430 ≈ 0.0001% of males
Protanomaly #171f4f ≈ 1.08% of males
Deuteranomaly #191e4d ≈ 4.63% of males
Tritanomaly #271f3e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2c174e {
  color: #2c174e;
}
Background
.bg-2c174e {
  background-color: #2c174e;
  color: #ffffff;
}
Border
.border-2c174e {
  border: 2px solid #2c174e;
}
CSS variables
:root {
  --color-primary: #2c174e;
  --color-primary-rgb: 44 23 78;
  --color-primary-hsl: 263 54% 20%;
}
Gradient
.gradient-2c174e {
  background: linear-gradient(135deg, #2c174e, #47174e);
}
Colored shadow
.shadow-2c174e {
  box-shadow: 0 8px 24px rgb(44 23 78 / 0.35);
}

Midnight Blue
#2c174e  rgb(44, 23, 78)  hsl(263, 54%, 20%)  Midnight Blue
#394e17  rgb(57, 78, 23)  hsl(83, 54%, 20%)  Army Green
#4e2c17  rgb(78, 44, 23)  hsl(23, 54%, 20%)  Bistre
#174e2c  rgb(23, 78, 44)  hsl(143, 54%, 20%)  British Racing Green