#2A1E4E

#2a1e4e ≈ Midnight Blue

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

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

Description generated from the measured properties of this color.

Conversions of #2a1e4e 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.0197

Readable text 15.06:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.39:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #262626 ≈ 0.003% of males
Achromatomaly #28233a ≈ 0.001% of males
Protanopia #052750 ≈ 1.01% of males
Deuteranopia #08254d ≈ 1.27% of males
Tritanopia #202832 ≈ 0.0001% of males
Protanomaly #1a244f ≈ 1.08% of males
Deuteranomaly #1b234d ≈ 4.63% of males
Tritanomaly #24253f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a1e4e {
  color: #2a1e4e;
}
Background
.bg-2a1e4e {
  background-color: #2a1e4e;
  color: #ffffff;
}
Border
.border-2a1e4e {
  border: 2px solid #2a1e4e;
}
CSS variables
:root {
  --color-primary: #2a1e4e;
  --color-primary-rgb: 42 30 78;
  --color-primary-hsl: 255 44% 21%;
}
Gradient
.gradient-2a1e4e {
  background: linear-gradient(135deg, #2a1e4e, #421e4e);
}
Colored shadow
.shadow-2a1e4e {
  box-shadow: 0 8px 24px rgb(42 30 78 / 0.35);
}

Midnight Blue
#2a1e4e  rgb(42, 30, 78)  hsl(255, 44%, 21%)  Midnight Blue
#424e1e  rgb(66, 78, 30)  hsl(75, 44%, 21%)  Army Green
#4e2a1e  rgb(78, 42, 30)  hsl(15, 44%, 21%)  Caput Mortuum
#1e4e2a  rgb(30, 78, 42)  hsl(135, 44%, 21%)  British Racing Green