#04054d ≈ Midnight Blue
#04054d 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, 1.96% green and 30.2% blue; printed in CMYK it uses 94.81% cyan, 93.51% magenta, 0% yellow and 69.8% black. Its hue angle is 239.18°, with 90.12% saturation and 15.88% 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.52:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.76.
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.0067 |
Shades
#04054d mixed progressively with black.
Tints
#04054d mixed progressively with white.
Tones
#04054d mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-04054d {
color: #04054d;
}
.bg-04054d {
background-color: #04054d;
color: #ffffff;
}
.border-04054d {
border: 2px solid #04054d;
}
:root {
--color-primary: #04054d;
--color-primary-rgb: 4 5 77;
--color-primary-hsl: 239 90% 16%;
}
.gradient-04054d {
background: linear-gradient(135deg, #04054d, #27044d);
}
.shadow-04054d {
box-shadow: 0 8px 24px rgb(4 5 77 / 0.35);
}
Midnight Blue
#04054d rgb(4, 5, 77) hsl(239, 90%, 16%) Midnight Blue
#4d4c04 rgb(77, 76, 4) hsl(59, 90%, 16%) Army Green
#4d0405 rgb(77, 4, 5) hsl(359, 90%, 16%) Rosewood
#054d04 rgb(5, 77, 4) hsl(119, 90%, 16%) Lincoln Green