#040a47 ≈ Midnight Blue
#040a47 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, 3.92% green and 27.84% blue; printed in CMYK it uses 94.37% cyan, 85.92% magenta, 0% yellow and 72.16% black. Its hue angle is 234.63°, with 89.33% saturation and 14.71% 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.43:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.37.
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.007 |
Shades
#040a47 mixed progressively with black.
Tints
#040a47 mixed progressively with white.
Tones
#040a47 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040a47 {
color: #040a47;
}
.bg-040a47 {
background-color: #040a47;
color: #ffffff;
}
.border-040a47 {
border: 2px solid #040a47;
}
:root {
--color-primary: #040a47;
--color-primary-rgb: 4 10 71;
--color-primary-hsl: 235 89% 15%;
}
.gradient-040a47 {
background: linear-gradient(135deg, #040a47, #200447);
}
.shadow-040a47 {
box-shadow: 0 8px 24px rgb(4 10 71 / 0.35);
}
Midnight Blue
#040a47 rgb(4, 10, 71) hsl(235, 89%, 15%) Midnight Blue
#474104 rgb(71, 65, 4) hsl(55, 89%, 15%) Army Green
#47040a rgb(71, 4, 10) hsl(355, 89%, 15%) Rosewood
#0a4704 rgb(10, 71, 4) hsl(115, 89%, 15%) Lincoln Green