#040256 ≈ Midnight Blue
#040256 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 33.73% blue; printed in CMYK it uses 95.35% cyan, 97.67% magenta, 0% yellow and 66.27% black. Its hue angle is 241.43°, with 95.45% saturation and 17.25% 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.29:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.22.
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.0074 |
Shades
#040256 mixed progressively with black.
Tints
#040256 mixed progressively with white.
Tones
#040256 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040256 {
color: #040256;
}
.bg-040256 {
background-color: #040256;
color: #ffffff;
}
.border-040256 {
border: 2px solid #040256;
}
:root {
--color-primary: #040256;
--color-primary-rgb: 4 2 86;
--color-primary-hsl: 241 95% 17%;
}
.gradient-040256 {
background: linear-gradient(135deg, #040256, #2e0256);
}
.shadow-040256 {
box-shadow: 0 8px 24px rgb(4 2 86 / 0.35);
}
Midnight Blue
#040256 rgb(4, 2, 86) hsl(241, 95%, 17%) Midnight Blue
#545602 rgb(84, 86, 2) hsl(61, 95%, 17%) Army Green
#560402 rgb(86, 4, 2) hsl(1, 95%, 17%) Rosewood
#025604 rgb(2, 86, 4) hsl(121, 95%, 17%) Lincoln Green