#04257a ≈ Midnight Blue
#04257a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 14.51% green and 47.84% blue; printed in CMYK it uses 96.72% cyan, 69.67% magenta, 0% yellow and 52.16% black. Its hue angle is 223.22°, 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 13.54:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.34.
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.0275 |
Shades
#04257a mixed progressively with black.
Tints
#04257a mixed progressively with white.
Tones
#04257a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-04257a {
color: #04257a;
}
.bg-04257a {
background-color: #04257a;
color: #ffffff;
}
.border-04257a {
border: 2px solid #04257a;
}
:root {
--color-primary: #04257a;
--color-primary-rgb: 4 37 122;
--color-primary-hsl: 223 94% 25%;
}
.gradient-04257a {
background: linear-gradient(135deg, #04257a, #1e047a);
}
.shadow-04257a {
box-shadow: 0 8px 24px rgb(4 37 122 / 0.35);
}
Midnight Blue
#04257a rgb(4, 37, 122) hsl(223, 94%, 25%) Midnight Blue
#7a5904 rgb(122, 89, 4) hsl(43, 94%, 25%) Field Drab
#7a0425 rgb(122, 4, 37) hsl(343, 94%, 25%) Burgundy
#257a04 rgb(37, 122, 4) hsl(103, 94%, 25%) Green