#040648 ≈ Midnight Blue
#040648 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, 2.35% green and 28.24% blue; printed in CMYK it uses 94.44% cyan, 91.67% magenta, 0% yellow and 71.76% black. Its hue angle is 238.24°, with 89.47% saturation and 14.9% 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.67:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.36.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #000033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0062 |
Shades
#040648 mixed progressively with black.
Tints
#040648 mixed progressively with white.
Tones
#040648 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040648 {
color: #040648;
}
.bg-040648 {
background-color: #040648;
color: #ffffff;
}
.border-040648 {
border: 2px solid #040648;
}
:root {
--color-primary: #040648;
--color-primary-rgb: 4 6 72;
--color-primary-hsl: 238 89% 15%;
}
.gradient-040648 {
background: linear-gradient(135deg, #040648, #240448);
}
.shadow-040648 {
box-shadow: 0 8px 24px rgb(4 6 72 / 0.35);
}
Midnight Blue
#040648 rgb(4, 6, 72) hsl(238, 89%, 15%) Midnight Blue
#484604 rgb(72, 70, 4) hsl(58, 89%, 15%) Army Green
#480406 rgb(72, 4, 6) hsl(358, 89%, 15%) Rosewood
#064804 rgb(6, 72, 4) hsl(118, 89%, 15%) Lincoln Green