#040c5b ≈ Midnight Blue
#040c5b 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.71% green and 35.69% blue; printed in CMYK it uses 95.6% cyan, 86.81% magenta, 0% yellow and 64.31% black. Its hue angle is 234.48°, with 91.58% saturation and 18.63% 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.37:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.32.
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.0104 |
Shades
#040c5b mixed progressively with black.
Tints
#040c5b mixed progressively with white.
Tones
#040c5b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040c5b {
color: #040c5b;
}
.bg-040c5b {
background-color: #040c5b;
color: #ffffff;
}
.border-040c5b {
border: 2px solid #040c5b;
}
:root {
--color-primary: #040c5b;
--color-primary-rgb: 4 12 91;
--color-primary-hsl: 234 92% 19%;
}
.gradient-040c5b {
background: linear-gradient(135deg, #040c5b, #28045b);
}
.shadow-040c5b {
box-shadow: 0 8px 24px rgb(4 12 91 / 0.35);
}
Midnight Blue
#040c5b rgb(4, 12, 91) hsl(234, 92%, 19%) Midnight Blue
#5b5304 rgb(91, 83, 4) hsl(54, 92%, 19%) Field Drab
#5b040c rgb(91, 4, 12) hsl(354, 92%, 19%) Rosewood
#0c5b04 rgb(12, 91, 4) hsl(114, 92%, 19%) Lincoln Green