#331F51

#331f51 ≈ Midnight Blue

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

#331f51 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 12.16% green and 31.76% blue; printed in CMYK it uses 37.04% cyan, 61.73% magenta, 0% yellow and 68.24% black. Its hue angle is 264°, with 44.64% saturation and 21.96% 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.43:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.17.

Description generated from the measured properties of this color.

Conversions of #331f51 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.0228

Readable text 14.43:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.46:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2a2a2a ≈ 0.003% of males
Achromatomaly #2e263d ≈ 0.001% of males
Protanopia #092a53 ≈ 1.01% of males
Deuteranopia #102950 ≈ 1.27% of males
Tritanopia #2d2934 ≈ 0.0001% of males
Protanomaly #202652 ≈ 1.08% of males
Deuteranomaly #222550 ≈ 4.63% of males
Tritanomaly #2f2542 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-331f51 {
  color: #331f51;
}
Background
.bg-331f51 {
  background-color: #331f51;
  color: #ffffff;
}
Border
.border-331f51 {
  border: 2px solid #331f51;
}
CSS variables
:root {
  --color-primary: #331f51;
  --color-primary-rgb: 51 31 81;
  --color-primary-hsl: 264 45% 22%;
}
Gradient
.gradient-331f51 {
  background: linear-gradient(135deg, #331f51, #4c1f51);
}
Colored shadow
.shadow-331f51 {
  box-shadow: 0 8px 24px rgb(51 31 81 / 0.35);
}

Midnight Blue
#331f51  rgb(51, 31, 81)  hsl(264, 45%, 22%)  Midnight Blue
#3d511f  rgb(61, 81, 31)  hsl(84, 45%, 22%)  Army Green
#51331f  rgb(81, 51, 31)  hsl(24, 45%, 22%)  Bistre
#1f5133  rgb(31, 81, 51)  hsl(144, 45%, 22%)  Hunter Green