#02155b ≈ Midnight Blue
#02155b is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 8.24% green and 35.69% blue; printed in CMYK it uses 97.8% cyan, 76.92% magenta, 0% yellow and 64.31% black. Its hue angle is 227.19°, with 95.7% saturation and 18.24% 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 16.65:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.07.
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.013 |
Shades
#02155b mixed progressively with black.
Tints
#02155b mixed progressively with white.
Tones
#02155b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-02155b {
color: #02155b;
}
.bg-02155b {
background-color: #02155b;
color: #ffffff;
}
.border-02155b {
border: 2px solid #02155b;
}
:root {
--color-primary: #02155b;
--color-primary-rgb: 2 21 91;
--color-primary-hsl: 227 96% 18%;
}
.gradient-02155b {
background: linear-gradient(135deg, #02155b, #1c025b);
}
.shadow-02155b {
box-shadow: 0 8px 24px rgb(2 21 91 / 0.35);
}
Midnight Blue
#02155b rgb(2, 21, 91) hsl(227, 96%, 18%) Midnight Blue
#5b4802 rgb(91, 72, 2) hsl(47, 96%, 18%) Field Drab
#5b0215 rgb(91, 2, 21) hsl(347, 96%, 18%) Rosewood
#155b02 rgb(21, 91, 2) hsl(107, 96%, 18%) Lincoln Green