#02126e ≈ Midnight Blue
#02126e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 7.06% green and 43.14% blue; printed in CMYK it uses 98.18% cyan, 83.64% magenta, 0% yellow and 56.86% black. Its hue angle is 231.11°, with 96.43% saturation and 21.96% 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 15.98:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.13.
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.0157 |
Shades
#02126e mixed progressively with black.
Tints
#02126e mixed progressively with white.
Tones
#02126e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-02126e {
color: #02126e;
}
.bg-02126e {
background-color: #02126e;
color: #ffffff;
}
.border-02126e {
border: 2px solid #02126e;
}
:root {
--color-primary: #02126e;
--color-primary-rgb: 2 18 110;
--color-primary-hsl: 231 96% 22%;
}
.gradient-02126e {
background: linear-gradient(135deg, #02126e, #28026e);
}
.shadow-02126e {
box-shadow: 0 8px 24px rgb(2 18 110 / 0.35);
}
Midnight Blue
#02126e rgb(2, 18, 110) hsl(231, 96%, 22%) Midnight Blue
#6e5e02 rgb(110, 94, 2) hsl(51, 96%, 22%) Field Drab
#6e0212 rgb(110, 2, 18) hsl(351, 96%, 22%) Rosewood
#126e02 rgb(18, 110, 2) hsl(111, 96%, 22%) Pakistan Green