#02145f ≈ Midnight Blue
#02145f 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, 7.84% green and 37.25% blue; printed in CMYK it uses 97.89% cyan, 78.95% magenta, 0% yellow and 62.75% black. Its hue angle is 228.39°, with 95.88% saturation and 19.02% 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.56:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.37.
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.0134 |
Shades
#02145f mixed progressively with black.
Tints
#02145f mixed progressively with white.
Tones
#02145f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-02145f {
color: #02145f;
}
.bg-02145f {
background-color: #02145f;
color: #ffffff;
}
.border-02145f {
border: 2px solid #02145f;
}
:root {
--color-primary: #02145f;
--color-primary-rgb: 2 20 95;
--color-primary-hsl: 228 96% 19%;
}
.gradient-02145f {
background: linear-gradient(135deg, #02145f, #1f025f);
}
.shadow-02145f {
box-shadow: 0 8px 24px rgb(2 20 95 / 0.35);
}
Midnight Blue
#02145f rgb(2, 20, 95) hsl(228, 96%, 19%) Midnight Blue
#5f4d02 rgb(95, 77, 2) hsl(48, 96%, 19%) Field Drab
#5f0214 rgb(95, 2, 20) hsl(348, 96%, 19%) Rosewood
#145f02 rgb(20, 95, 2) hsl(108, 96%, 19%) Dark Green