#40158A

#40158a ≈ Persian Indigo

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

#40158a 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 54.12% blue; printed in CMYK it uses 53.62% cyan, 84.78% magenta, 0% yellow and 45.88% black. Its hue angle is 262.05°, with 73.58% saturation and 31.18% 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.41:1 (WCAG AAA). The closest named color is Persian Indigo (#32127a), ΔE 3.07.

Description generated from the measured properties of this color.

Conversions of #40158a 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.0346

Readable text 12.41:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.69:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #343434 ≈ 0.003% of males
Achromatomaly #392b62 ≈ 0.001% of males
Protanopia #00368d ≈ 1.01% of males
Deuteranopia #003288 ≈ 1.27% of males
Tritanopia #253951 ≈ 0.0001% of males
Protanomaly #002c8c ≈ 1.08% of males
Deuteranomaly #032989 ≈ 4.63% of males
Tritanomaly #322e6c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Persian Indigo
#40158a  rgb(64, 21, 138)  hsl(262, 74%, 31%)  Persian Indigo
#5f8a15  rgb(95, 138, 21)  hsl(82, 74%, 31%)  Olive Drab
#8a4015  rgb(138, 64, 21)  hsl(22, 74%, 31%)  Saddle Brown
#158a40  rgb(21, 138, 64)  hsl(142, 74%, 31%)  Sea Green