#04104f ≈ Midnight Blue
#04104f 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, 6.27% green and 30.98% blue; printed in CMYK it uses 94.94% cyan, 79.75% magenta, 0% yellow and 69.02% black. Its hue angle is 230.4°, with 90.36% saturation and 16.27% 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.61:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.91.
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.0096 |
Shades
#04104f mixed progressively with black.
Tints
#04104f mixed progressively with white.
Tones
#04104f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-04104f {
color: #04104f;
}
.bg-04104f {
background-color: #04104f;
color: #ffffff;
}
.border-04104f {
border: 2px solid #04104f;
}
:root {
--color-primary: #04104f;
--color-primary-rgb: 4 16 79;
--color-primary-hsl: 230 90% 16%;
}
.gradient-04104f {
background: linear-gradient(135deg, #04104f, #1d044f);
}
.shadow-04104f {
box-shadow: 0 8px 24px rgb(4 16 79 / 0.35);
}
Midnight Blue
#04104f rgb(4, 16, 79) hsl(230, 90%, 16%) Midnight Blue
#4f4304 rgb(79, 67, 4) hsl(50, 90%, 16%) Field Drab
#4f0410 rgb(79, 4, 16) hsl(350, 90%, 16%) Rosewood
#104f04 rgb(16, 79, 4) hsl(110, 90%, 16%) Lincoln Green