#040f61 ≈ Midnight Blue
#040f61 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.88% green and 38.04% blue; printed in CMYK it uses 95.88% cyan, 84.54% magenta, 0% yellow and 61.96% black. Its hue angle is 232.9°, with 92.08% saturation and 19.8% 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 16.85:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.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.0123 |
Shades
#040f61 mixed progressively with black.
Tints
#040f61 mixed progressively with white.
Tones
#040f61 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040f61 {
color: #040f61;
}
.bg-040f61 {
background-color: #040f61;
color: #ffffff;
}
.border-040f61 {
border: 2px solid #040f61;
}
:root {
--color-primary: #040f61;
--color-primary-rgb: 4 15 97;
--color-primary-hsl: 233 92% 20%;
}
.gradient-040f61 {
background: linear-gradient(135deg, #040f61, #270461);
}
.shadow-040f61 {
box-shadow: 0 8px 24px rgb(4 15 97 / 0.35);
}
Midnight Blue
#040f61 rgb(4, 15, 97) hsl(233, 92%, 20%) Midnight Blue
#615604 rgb(97, 86, 4) hsl(53, 92%, 20%) Field Drab
#61040f rgb(97, 4, 15) hsl(353, 92%, 20%) Rosewood
#0f6104 rgb(15, 97, 4) hsl(113, 92%, 20%) Dark Green