#402a8a ≈ Dark Slate Blue
#402a8a 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.47% green and 54.12% blue; printed in CMYK it uses 53.62% cyan, 69.57% magenta, 0% yellow and 45.88% black. Its hue angle is 253.75°, with 53.33% saturation and 35.29% 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.96:1 (WCAG AAA). The closest named color is Dark Slate Blue (#483d8b), ΔE 5.46.
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.0458 |
Shades
#402a8a mixed progressively with black.
Tints
#402a8a mixed progressively with white.
Tones
#402a8a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-402a8a {
color: #402a8a;
}
.bg-402a8a {
background-color: #402a8a;
color: #ffffff;
}
.border-402a8a {
border: 2px solid #402a8a;
}
:root {
--color-primary: #402a8a;
--color-primary-rgb: 64 42 138;
--color-primary-hsl: 254 53% 35%;
}
.gradient-402a8a {
background: linear-gradient(135deg, #402a8a, #702a8a);
}
.shadow-402a8a {
box-shadow: 0 8px 24px rgb(64 42 138 / 0.35);
}
Dark Slate Blue
#402a8a rgb(64, 42, 138) hsl(254, 53%, 35%) Dark Slate Blue
#748a2a rgb(116, 138, 42) hsl(74, 53%, 35%) Olive Drab
#8a402a rgb(138, 64, 42) hsl(14, 53%, 35%) Chestnut
#2a8a40 rgb(42, 138, 64) hsl(134, 53%, 35%) Forest Green