#405fa2 ≈ Denim
#405fa2 is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 25.1% red, 37.25% green and 63.53% blue; printed in CMYK it uses 60.49% cyan, 41.36% magenta, 0% yellow and 36.47% black. Its hue angle is 221.02°, with 43.36% saturation and 44.31% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and brand accents. White text on this color reaches a contrast ratio of 6.22:1 (WCAG AA). The closest named color is Denim (#1560bd), ΔE 4.81.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #336699 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1188 |
Shades
#405fa2 mixed progressively with black.
Tints
#405fa2 mixed progressively with white.
Tones
#405fa2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-405fa2 {
color: #405fa2;
}
.bg-405fa2 {
background-color: #405fa2;
color: #ffffff;
}
.border-405fa2 {
border: 2px solid #405fa2;
}
:root {
--color-primary: #405fa2;
--color-primary-rgb: 64 95 162;
--color-primary-hsl: 221 43% 44%;
}
.gradient-405fa2 {
background: linear-gradient(135deg, #405fa2, #5240a2);
}
.shadow-405fa2 {
box-shadow: 0 8px 24px rgb(64 95 162 / 0.35);
}
Denim
#405fa2 rgb(64, 95, 162) hsl(221, 43%, 44%) Denim
#a28340 rgb(162, 131, 64) hsl(41, 43%, 44%) Dark Goldenrod
#a2405f rgb(162, 64, 95) hsl(341, 43%, 44%) Twilight Lavender
#5fa240 rgb(95, 162, 64) hsl(101, 43%, 44%) Olive Drab