#2E124A

#2e124a ≈ Midnight Blue

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

#2e124a is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 18.04% red, 7.06% green and 29.02% blue; printed in CMYK it uses 37.84% cyan, 75.68% magenta, 0% yellow and 70.98% black. Its hue angle is 270°, with 60.87% saturation and 18.04% 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 16.13:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.19.

Description generated from the measured properties of this color.

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

Readable text 16.13:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.3:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #212121 ≈ 0.003% of males
Achromatomaly #271c36 ≈ 0.001% of males
Protanopia #00204c ≈ 1.01% of males
Deuteranopia #002149 ≈ 1.27% of males
Tritanopia #281f2c ≈ 0.0001% of males
Protanomaly #171b4b ≈ 1.08% of males
Deuteranomaly #1b1c49 ≈ 4.63% of males
Tritanomaly #2b1a3a ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2e124a {
  color: #2e124a;
}
Background
.bg-2e124a {
  background-color: #2e124a;
  color: #ffffff;
}
Border
.border-2e124a {
  border: 2px solid #2e124a;
}
CSS variables
:root {
  --color-primary: #2e124a;
  --color-primary-rgb: 46 18 74;
  --color-primary-hsl: 270 61% 18%;
}
Gradient
.gradient-2e124a {
  background: linear-gradient(135deg, #2e124a, #4a124a);
}
Colored shadow
.shadow-2e124a {
  box-shadow: 0 8px 24px rgb(46 18 74 / 0.35);
}

Midnight Blue
#2e124a  rgb(46, 18, 74)  hsl(270, 61%, 18%)  Midnight Blue
#2e4a12  rgb(46, 74, 18)  hsl(90, 61%, 18%)  Lincoln Green
#4a2e12  rgb(74, 46, 18)  hsl(30, 61%, 18%)  Bistre
#124a2e  rgb(18, 74, 46)  hsl(150, 61%, 18%)  British Racing Green