#2E1F4E

#2e1f4e ≈ Midnight Blue

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

#2e1f4e is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 18.04% red, 12.16% green and 30.59% blue; printed in CMYK it uses 41.03% cyan, 60.26% magenta, 0% yellow and 69.41% black. Its hue angle is 259.15°, with 43.12% saturation and 21.37% 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 14.77:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.21.

Description generated from the measured properties of this color.

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

Readable text 14.77: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 #2a253b ≈ 0.001% of males
Protanopia #0a2850 ≈ 1.01% of males
Deuteranopia #0e274d ≈ 1.27% of males
Tritanopia #262933 ≈ 0.0001% of males
Protanomaly #1e254f ≈ 1.08% of males
Deuteranomaly #1f244d ≈ 4.63% of males
Tritanomaly #2a253f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2e1f4e {
  color: #2e1f4e;
}
Background
.bg-2e1f4e {
  background-color: #2e1f4e;
  color: #ffffff;
}
Border
.border-2e1f4e {
  border: 2px solid #2e1f4e;
}
CSS variables
:root {
  --color-primary: #2e1f4e;
  --color-primary-rgb: 46 31 78;
  --color-primary-hsl: 259 43% 21%;
}
Gradient
.gradient-2e1f4e {
  background: linear-gradient(135deg, #2e1f4e, #451f4e);
}
Colored shadow
.shadow-2e1f4e {
  box-shadow: 0 8px 24px rgb(46 31 78 / 0.35);
}

Midnight Blue
#2e1f4e  rgb(46, 31, 78)  hsl(259, 43%, 21%)  Midnight Blue
#3f4e1f  rgb(63, 78, 31)  hsl(79, 43%, 21%)  Army Green
#4e2e1f  rgb(78, 46, 31)  hsl(19, 43%, 21%)  Bistre
#1f4e2e  rgb(31, 78, 46)  hsl(139, 43%, 21%)  British Racing Green