#2C164E

#2c164e ≈ Midnight Blue

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

#2c164e 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, 8.63% green and 30.59% blue; printed in CMYK it uses 43.59% cyan, 71.79% magenta, 0% yellow and 69.41% black. Its hue angle is 263.57°, with 56% saturation and 19.61% 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.77:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.04.

Description generated from the measured properties of this color.

Conversions of #2c164e 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.0166

Readable text 15.77:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.33:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #232323 ≈ 0.003% of males
Achromatomaly #271e39 ≈ 0.001% of males
Protanopia #002350 ≈ 1.01% of males
Deuteranopia #00224d ≈ 1.27% of males
Tritanopia #24232f ≈ 0.0001% of males
Protanomaly #161e4f ≈ 1.08% of males
Deuteranomaly #181e4d ≈ 4.63% of males
Tritanomaly #271e3e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2c164e  rgb(44, 22, 78)  hsl(264, 56%, 20%)  Midnight Blue
#384e16  rgb(56, 78, 22)  hsl(84, 56%, 20%)  Army Green
#4e2c16  rgb(78, 44, 22)  hsl(24, 56%, 20%)  Bistre
#164e2c  rgb(22, 78, 44)  hsl(144, 56%, 20%)  British Racing Green