#40158E

#40158e ≈ Persian Indigo

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

#40158e is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 25.1% red, 8.24% green and 55.69% blue; printed in CMYK it uses 54.93% cyan, 85.21% magenta, 0% yellow and 44.31% black. Its hue angle is 261.32°, with 74.23% saturation and 31.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 corporate identities. White text on this color reaches a contrast ratio of 12.24:1 (WCAG AAA). The closest named color is Persian Indigo (#32127a), ΔE 3.52.

Description generated from the measured properties of this color.

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

Readable text 12.24:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.72:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #353535 ≈ 0.003% of males
Achromatomaly #3a2b65 ≈ 0.001% of males
Protanopia #003791 ≈ 1.01% of males
Deuteranopia #00328c ≈ 1.27% of males
Tritanopia #213a54 ≈ 0.0001% of males
Protanomaly #002d90 ≈ 1.08% of males
Deuteranomaly #00298d ≈ 4.63% of males
Tritanomaly #302f70 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-40158e {
  color: #40158e;
}
Background
.bg-40158e {
  background-color: #40158e;
  color: #ffffff;
}
Border
.border-40158e {
  border: 2px solid #40158e;
}
CSS variables
:root {
  --color-primary: #40158e;
  --color-primary-rgb: 64 21 142;
  --color-primary-hsl: 261 74% 32%;
}
Gradient
.gradient-40158e {
  background: linear-gradient(135deg, #40158e, #7c158e);
}
Colored shadow
.shadow-40158e {
  box-shadow: 0 8px 24px rgb(64 21 142 / 0.35);
}

Persian Indigo
#40158e  rgb(64, 21, 142)  hsl(261, 74%, 32%)  Persian Indigo
#638e15  rgb(99, 142, 21)  hsl(81, 74%, 32%)  Olive Drab
#8e4015  rgb(142, 64, 21)  hsl(21, 74%, 32%)  Saddle Brown
#158e40  rgb(21, 142, 64)  hsl(141, 74%, 32%)  Forest Green