#331F8A

#331f8a ≈ Persian Indigo

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

#331f8a is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 20% red, 12.16% green and 54.12% blue; printed in CMYK it uses 63.04% cyan, 77.54% magenta, 0% yellow and 45.88% black. Its hue angle is 251.21°, with 63.31% saturation and 33.14% 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 corporate identities. White text on this color reaches a contrast ratio of 12.33:1 (WCAG AAA). The closest named color is Persian Indigo (#32127a), ΔE 3.5.

Description generated from the measured properties of this color.

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

Readable text 12.33:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.7:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #353535 ≈ 0.003% of males
Achromatomaly #342d62 ≈ 0.001% of males
Protanopia #00388d ≈ 1.01% of males
Deuteranopia #003188 ≈ 1.27% of males
Tritanopia #003e53 ≈ 0.0001% of males
Protanomaly #00308c ≈ 1.08% of males
Deuteranomaly #002b89 ≈ 4.63% of males
Tritanomaly #1a346d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-331f8a {
  color: #331f8a;
}
Background
.bg-331f8a {
  background-color: #331f8a;
  color: #ffffff;
}
Border
.border-331f8a {
  border: 2px solid #331f8a;
}
CSS variables
:root {
  --color-primary: #331f8a;
  --color-primary-rgb: 51 31 138;
  --color-primary-hsl: 251 63% 33%;
}
Gradient
.gradient-331f8a {
  background: linear-gradient(135deg, #331f8a, #681f8a);
}
Colored shadow
.shadow-331f8a {
  box-shadow: 0 8px 24px rgb(51 31 138 / 0.35);
}

Persian Indigo
#331f8a  rgb(51, 31, 138)  hsl(251, 63%, 33%)  Persian Indigo
#768a1f  rgb(118, 138, 31)  hsl(71, 63%, 33%)  Olive Drab
#8a331f  rgb(138, 51, 31)  hsl(11, 63%, 33%)  Burnt Umber
#1f8a33  rgb(31, 138, 51)  hsl(131, 63%, 33%)  Forest Green