#331B4C

#331b4c ≈ Midnight Blue

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

#331b4c 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 29.8% blue; printed in CMYK it uses 32.89% cyan, 64.47% magenta, 0% yellow and 70.2% black. Its hue angle is 269.39°, with 47.57% saturation and 20.2% 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.98:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 10.01.

Description generated from the measured properties of this color.

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

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

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #2c2339 ≈ 0.001% of males
Protanopia #06264e ≈ 1.01% of males
Deuteranopia #10274b ≈ 1.27% of males
Tritanopia #2e2530 ≈ 0.0001% of males
Protanomaly #20224d ≈ 1.08% of males
Deuteranomaly #22234b ≈ 4.63% of males
Tritanomaly #30213d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-331b4c {
  color: #331b4c;
}
Background
.bg-331b4c {
  background-color: #331b4c;
  color: #ffffff;
}
Border
.border-331b4c {
  border: 2px solid #331b4c;
}
CSS variables
:root {
  --color-primary: #331b4c;
  --color-primary-rgb: 51 27 76;
  --color-primary-hsl: 269 48% 20%;
}
Gradient
.gradient-331b4c {
  background: linear-gradient(135deg, #331b4c, #4c1b4c);
}
Colored shadow
.shadow-331b4c {
  box-shadow: 0 8px 24px rgb(51 27 76 / 0.35);
}

Midnight Blue
#331b4c  rgb(51, 27, 76)  hsl(269, 48%, 20%)  Midnight Blue
#344c1b  rgb(52, 76, 27)  hsl(89, 48%, 20%)  Army Green
#4c331b  rgb(76, 51, 27)  hsl(29, 48%, 20%)  Bistre
#1b4c33  rgb(27, 76, 51)  hsl(149, 48%, 20%)  British Racing Green