#2E2162

#2e2162 ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#2e2162 is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 18.04% red, 12.94% green and 38.43% blue; printed in CMYK it uses 53.06% cyan, 66.33% magenta, 0% yellow and 61.57% black. Its hue angle is 252°, with 49.62% saturation and 25.69% 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 13.91:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.03.

Description generated from the measured properties of this color.

Conversions of #2e2162 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.0255

Readable text 13.91:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.51:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2c2c2c ≈ 0.003% of males
Achromatomaly #2d2848 ≈ 0.001% of males
Protanopia #002e64 ≈ 1.01% of males
Deuteranopia #002b61 ≈ 1.27% of males
Tritanopia #1c303e ≈ 0.0001% of males
Protanomaly #162963 ≈ 1.08% of males
Deuteranomaly #162761 ≈ 4.63% of males
Tritanomaly #242b4f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2e2162 {
  color: #2e2162;
}
Background
.bg-2e2162 {
  background-color: #2e2162;
  color: #ffffff;
}
Border
.border-2e2162 {
  border: 2px solid #2e2162;
}
CSS variables
:root {
  --color-primary: #2e2162;
  --color-primary-rgb: 46 33 98;
  --color-primary-hsl: 252 50% 26%;
}
Gradient
.gradient-2e2162 {
  background: linear-gradient(135deg, #2e2162, #4f2162);
}
Colored shadow
.shadow-2e2162 {
  box-shadow: 0 8px 24px rgb(46 33 98 / 0.35);
}

Midnight Blue
#2e2162  rgb(46, 33, 98)  hsl(252, 50%, 26%)  Midnight Blue
#556221  rgb(85, 98, 33)  hsl(72, 50%, 26%)  Dark Olive Green
#622e21  rgb(98, 46, 33)  hsl(12, 50%, 26%)  Caput Mortuum
#21622e  rgb(33, 98, 46)  hsl(132, 50%, 26%)  Cadmium Green