#2B1E4D

#2b1e4d ≈ Midnight Blue

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

#2b1e4d is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 16.86% red, 11.76% green and 30.2% blue; printed in CMYK it uses 44.16% cyan, 61.04% magenta, 0% yellow and 69.8% black. Its hue angle is 256.6°, with 43.93% saturation and 20.98% 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.05:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.94.

Description generated from the measured properties of this color.

Conversions of #2b1e4d 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.0198

Readable text 15.05:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.4:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #262626 ≈ 0.003% of males
Achromatomaly #282339 ≈ 0.001% of males
Protanopia #07274f ≈ 1.01% of males
Deuteranopia #0a264c ≈ 1.27% of males
Tritanopia #222832 ≈ 0.0001% of males
Protanomaly #1b244e ≈ 1.08% of males
Deuteranomaly #1c234c ≈ 4.63% of males
Tritanomaly #26243e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2b1e4d {
  color: #2b1e4d;
}
Background
.bg-2b1e4d {
  background-color: #2b1e4d;
  color: #ffffff;
}
Border
.border-2b1e4d {
  border: 2px solid #2b1e4d;
}
CSS variables
:root {
  --color-primary: #2b1e4d;
  --color-primary-rgb: 43 30 77;
  --color-primary-hsl: 257 44% 21%;
}
Gradient
.gradient-2b1e4d {
  background: linear-gradient(135deg, #2b1e4d, #431e4d);
}
Colored shadow
.shadow-2b1e4d {
  box-shadow: 0 8px 24px rgb(43 30 77 / 0.35);
}

Midnight Blue
#2b1e4d  rgb(43, 30, 77)  hsl(257, 44%, 21%)  Midnight Blue
#404d1e  rgb(64, 77, 30)  hsl(77, 44%, 21%)  Army Green
#4d2b1e  rgb(77, 43, 30)  hsl(17, 44%, 21%)  Caput Mortuum
#1e4d2b  rgb(30, 77, 43)  hsl(137, 44%, 21%)  British Racing Green