#331B4E

#331b4e ≈ Midnight Blue

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

#331b4e is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 10.59% green and 30.59% blue; printed in CMYK it uses 34.62% cyan, 65.38% magenta, 0% yellow and 69.41% black. Its hue angle is 268.24°, with 48.57% saturation and 20.59% 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.92:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.5.

Description generated from the measured properties of this color.

Conversions of #331b4e 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.0204

Readable text 14.92:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.41:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #2c233a ≈ 0.001% of males
Protanopia #032750 ≈ 1.01% of males
Deuteranopia #0e274d ≈ 1.27% of males
Tritanopia #2e2531 ≈ 0.0001% of males
Protanomaly #1f224f ≈ 1.08% of males
Deuteranomaly #22234d ≈ 4.63% of males
Tritanomaly #30223f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-331b4e {
  color: #331b4e;
}
Background
.bg-331b4e {
  background-color: #331b4e;
  color: #ffffff;
}
Border
.border-331b4e {
  border: 2px solid #331b4e;
}
CSS variables
:root {
  --color-primary: #331b4e;
  --color-primary-rgb: 51 27 78;
  --color-primary-hsl: 268 49% 21%;
}
Gradient
.gradient-331b4e {
  background: linear-gradient(135deg, #331b4e, #4d1b4e);
}
Colored shadow
.shadow-331b4e {
  box-shadow: 0 8px 24px rgb(51 27 78 / 0.35);
}

Midnight Blue
#331b4e  rgb(51, 27, 78)  hsl(268, 49%, 21%)  Midnight Blue
#364e1b  rgb(54, 78, 27)  hsl(88, 49%, 21%)  Army Green
#4e331b  rgb(78, 51, 27)  hsl(28, 49%, 21%)  Bistre
#1b4e33  rgb(27, 78, 51)  hsl(148, 49%, 21%)  British Racing Green