#040252 ≈ Midnight Blue
#040252 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, 0.78% green and 32.16% blue; printed in CMYK it uses 95.12% cyan, 97.56% magenta, 0% yellow and 67.84% black. Its hue angle is 241.5°, with 95.24% 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 18.49:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.57.
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.0068 |
Shades
#040252 mixed progressively with black.
Tints
#040252 mixed progressively with white.
Tones
#040252 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040252 {
color: #040252;
}
.bg-040252 {
background-color: #040252;
color: #ffffff;
}
.border-040252 {
border: 2px solid #040252;
}
:root {
--color-primary: #040252;
--color-primary-rgb: 4 2 82;
--color-primary-hsl: 242 95% 16%;
}
.gradient-040252 {
background: linear-gradient(135deg, #040252, #2c0252);
}
.shadow-040252 {
box-shadow: 0 8px 24px rgb(4 2 82 / 0.35);
}
Midnight Blue
#040252 rgb(4, 2, 82) hsl(242, 95%, 16%) Midnight Blue
#505202 rgb(80, 82, 2) hsl(62, 95%, 16%) Army Green
#520402 rgb(82, 4, 2) hsl(2, 95%, 16%) Rosewood
#025204 rgb(2, 82, 4) hsl(122, 95%, 16%) Lincoln Green