#021f6f ≈ Midnight Blue
#021f6f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 12.16% green and 43.53% blue; printed in CMYK it uses 98.2% cyan, 72.07% magenta, 0% yellow and 56.47% black. Its hue angle is 224.04°, with 96.46% saturation and 22.16% 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 14.7:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.11.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #003366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0214 |
Shades
#021f6f mixed progressively with black.
Tints
#021f6f mixed progressively with white.
Tones
#021f6f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-021f6f {
color: #021f6f;
}
.bg-021f6f {
background-color: #021f6f;
color: #ffffff;
}
.border-021f6f {
border: 2px solid #021f6f;
}
:root {
--color-primary: #021f6f;
--color-primary-rgb: 2 31 111;
--color-primary-hsl: 224 96% 22%;
}
.gradient-021f6f {
background: linear-gradient(135deg, #021f6f, #1c026f);
}
.shadow-021f6f {
box-shadow: 0 8px 24px rgb(2 31 111 / 0.35);
}
Midnight Blue
#021f6f rgb(2, 31, 111) hsl(224, 96%, 22%) Midnight Blue
#6f5202 rgb(111, 82, 2) hsl(44, 96%, 22%) Field Drab
#6f021f rgb(111, 2, 31) hsl(344, 96%, 22%) Burgundy
#1f6f02 rgb(31, 111, 2) hsl(104, 96%, 22%) Pakistan Green