#40158a ≈ Persian Indigo
#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.
| 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 luminance | 0.0346 |
Shades
#40158a mixed progressively with black.
Tints
#40158a mixed progressively with white.
Tones
#40158a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-40158a {
color: #40158a;
}
.bg-40158a {
background-color: #40158a;
color: #ffffff;
}
.border-40158a {
border: 2px solid #40158a;
}
:root {
--color-primary: #40158a;
--color-primary-rgb: 64 21 138;
--color-primary-hsl: 262 74% 31%;
}
.gradient-40158a {
background: linear-gradient(135deg, #40158a, #7b158a);
}
.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