#2A174E

#2a174e ≈ Midnight Blue

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

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

Description generated from the measured properties of this color.

Conversions of #2a174e 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.78: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 #261f39 ≈ 0.001% of males
Protanopia #002350 ≈ 1.01% of males
Deuteranopia #00224d ≈ 1.27% of males
Tritanopia #202430 ≈ 0.0001% of males
Protanomaly #151f4f ≈ 1.08% of males
Deuteranomaly #171e4d ≈ 4.63% of males
Tritanomaly #251f3e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2a174e  rgb(42, 23, 78)  hsl(261, 54%, 20%)  Midnight Blue
#3b4e17  rgb(59, 78, 23)  hsl(81, 54%, 20%)  Army Green
#4e2a17  rgb(78, 42, 23)  hsl(21, 54%, 20%)  Caput Mortuum
#174e2a  rgb(23, 78, 42)  hsl(141, 54%, 20%)  British Racing Green