#040b60 ≈ Midnight Blue
#040b60 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, 4.31% green and 37.65% blue; printed in CMYK it uses 95.83% cyan, 88.54% magenta, 0% yellow and 62.35% black. Its hue angle is 235.43°, with 92% saturation and 19.61% 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 17.19:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.93.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #000066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0111 |
Shades
#040b60 mixed progressively with black.
Tints
#040b60 mixed progressively with white.
Tones
#040b60 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040b60 {
color: #040b60;
}
.bg-040b60 {
background-color: #040b60;
color: #ffffff;
}
.border-040b60 {
border: 2px solid #040b60;
}
:root {
--color-primary: #040b60;
--color-primary-rgb: 4 11 96;
--color-primary-hsl: 235 92% 20%;
}
.gradient-040b60 {
background: linear-gradient(135deg, #040b60, #2b0460);
}
.shadow-040b60 {
box-shadow: 0 8px 24px rgb(4 11 96 / 0.35);
}
Midnight Blue
#040b60 rgb(4, 11, 96) hsl(235, 92%, 20%) Midnight Blue
#605904 rgb(96, 89, 4) hsl(55, 92%, 20%) Field Drab
#60040b rgb(96, 4, 11) hsl(355, 92%, 20%) Rosewood
#0b6004 rgb(11, 96, 4) hsl(115, 92%, 20%) Dark Green