#40299e ≈ Imperial Blue
#40299e is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 25.1% red, 16.08% green and 61.96% blue; printed in CMYK it uses 59.49% cyan, 74.05% magenta, 0% yellow and 38.04% black. Its hue angle is 251.79°, with 58.79% saturation and 39.02% 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 brand accents. White text on this color reaches a contrast ratio of 10.35:1 (WCAG AAA). The closest named color is Imperial Blue (#002395), ΔE 5.71.
Description generated from the measured properties of this color.
| 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 luminance | 0.0514 |
Shades
#40299e mixed progressively with black.
Tints
#40299e mixed progressively with white.
Tones
#40299e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-40299e {
color: #40299e;
}
.bg-40299e {
background-color: #40299e;
color: #ffffff;
}
.border-40299e {
border: 2px solid #40299e;
}
:root {
--color-primary: #40299e;
--color-primary-rgb: 64 41 158;
--color-primary-hsl: 252 59% 39%;
}
.gradient-40299e {
background: linear-gradient(135deg, #40299e, #7a299e);
}
.shadow-40299e {
box-shadow: 0 8px 24px rgb(64 41 158 / 0.35);
}
Imperial Blue
#40299e rgb(64, 41, 158) hsl(252, 59%, 39%) Imperial Blue
#879e29 rgb(135, 158, 41) hsl(72, 59%, 39%) Olive Drab
#9e4029 rgb(158, 64, 41) hsl(12, 59%, 39%) Chestnut
#299e40 rgb(41, 158, 64) hsl(132, 59%, 39%) Shamrock Green