#020040 ≈ Midnight Blue
#020040 is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 0% green and 25.1% blue; printed in CMYK it uses 96.88% cyan, 100% magenta, 0% yellow and 74.9% black. Its hue angle is 241.88°, with 100% saturation and 12.55% 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 luxury branding. White text on this color reaches a contrast ratio of 19.51:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.87.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #000033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0038 |
Shades
#020040 mixed progressively with black.
Tints
#020040 mixed progressively with white.
Tones
#020040 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-020040 {
color: #020040;
}
.bg-020040 {
background-color: #020040;
color: #ffffff;
}
.border-020040 {
border: 2px solid #020040;
}
:root {
--color-primary: #020040;
--color-primary-rgb: 2 0 64;
--color-primary-hsl: 242 100% 13%;
}
.gradient-020040 {
background: linear-gradient(135deg, #020040, #220040);
}
.shadow-020040 {
box-shadow: 0 8px 24px rgb(2 0 64 / 0.35);
}
Midnight Blue
#020040 rgb(2, 0, 64) hsl(242, 100%, 13%) Midnight Blue
#3e4000 rgb(62, 64, 0) hsl(62, 100%, 13%) Army Green
#400200 rgb(64, 2, 0) hsl(2, 100%, 13%) Rosewood
#004002 rgb(0, 64, 2) hsl(122, 100%, 13%) Lincoln Green