#040e4a ≈ Midnight Blue
#040e4a is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 5.49% green and 29.02% blue; printed in CMYK it uses 94.59% cyan, 81.08% magenta, 0% yellow and 70.98% black. Its hue angle is 231.43°, with 89.74% saturation and 15.29% 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 18:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.79.
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.0083 |
Shades
#040e4a mixed progressively with black.
Tints
#040e4a mixed progressively with white.
Tones
#040e4a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040e4a {
color: #040e4a;
}
.bg-040e4a {
background-color: #040e4a;
color: #ffffff;
}
.border-040e4a {
border: 2px solid #040e4a;
}
:root {
--color-primary: #040e4a;
--color-primary-rgb: 4 14 74;
--color-primary-hsl: 231 90% 15%;
}
.gradient-040e4a {
background: linear-gradient(135deg, #040e4a, #1d044a);
}
.shadow-040e4a {
box-shadow: 0 8px 24px rgb(4 14 74 / 0.35);
}
Midnight Blue
#040e4a rgb(4, 14, 74) hsl(231, 90%, 15%) Midnight Blue
#4a4004 rgb(74, 64, 4) hsl(51, 90%, 15%) Army Green
#4a040e rgb(74, 4, 14) hsl(351, 90%, 15%) Rosewood
#0e4a04 rgb(14, 74, 4) hsl(111, 90%, 15%) Lincoln Green