#040d50 ≈ Midnight Blue
#040d50 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.1% green and 31.37% blue; printed in CMYK it uses 95% cyan, 83.75% magenta, 0% yellow and 68.63% black. Its hue angle is 232.89°, with 90.48% saturation and 16.47% 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.82:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.78.
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.0089 |
Shades
#040d50 mixed progressively with black.
Tints
#040d50 mixed progressively with white.
Tones
#040d50 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040d50 {
color: #040d50;
}
.bg-040d50 {
background-color: #040d50;
color: #ffffff;
}
.border-040d50 {
border: 2px solid #040d50;
}
:root {
--color-primary: #040d50;
--color-primary-rgb: 4 13 80;
--color-primary-hsl: 233 90% 16%;
}
.gradient-040d50 {
background: linear-gradient(135deg, #040d50, #210450);
}
.shadow-040d50 {
box-shadow: 0 8px 24px rgb(4 13 80 / 0.35);
}
Midnight Blue
#040d50 rgb(4, 13, 80) hsl(233, 90%, 16%) Midnight Blue
#504704 rgb(80, 71, 4) hsl(53, 90%, 16%) Army Green
#50040d rgb(80, 4, 13) hsl(353, 90%, 16%) Rosewood
#0d5004 rgb(13, 80, 4) hsl(113, 90%, 16%) Lincoln Green