#041f7a ≈ Midnight Blue
#041f7a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 12.16% green and 47.84% blue; printed in CMYK it uses 96.72% cyan, 74.59% magenta, 0% yellow and 52.16% black. Its hue angle is 226.27°, with 93.65% saturation and 24.71% 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 14.17:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.78.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #003366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0241 |
Shades
#041f7a mixed progressively with black.
Tints
#041f7a mixed progressively with white.
Tones
#041f7a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-041f7a {
color: #041f7a;
}
.bg-041f7a {
background-color: #041f7a;
color: #ffffff;
}
.border-041f7a {
border: 2px solid #041f7a;
}
:root {
--color-primary: #041f7a;
--color-primary-rgb: 4 31 122;
--color-primary-hsl: 226 94% 25%;
}
.gradient-041f7a {
background: linear-gradient(135deg, #041f7a, #24047a);
}
.shadow-041f7a {
box-shadow: 0 8px 24px rgb(4 31 122 / 0.35);
}
Midnight Blue
#041f7a rgb(4, 31, 122) hsl(226, 94%, 25%) Midnight Blue
#7a5f04 rgb(122, 95, 4) hsl(46, 94%, 25%) Field Drab
#7a041f rgb(122, 4, 31) hsl(346, 94%, 25%) Burgundy
#1f7a04 rgb(31, 122, 4) hsl(106, 94%, 25%) Green