#021b66 ≈ Midnight Blue
#021b66 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 10.59% green and 40% blue; printed in CMYK it uses 98.04% cyan, 73.53% magenta, 0% yellow and 60% black. Its hue angle is 225°, with 96.15% saturation and 20.39% 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.54:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.12.
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.0176 |
Shades
#021b66 mixed progressively with black.
Tints
#021b66 mixed progressively with white.
Tones
#021b66 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-021b66 {
color: #021b66;
}
.bg-021b66 {
background-color: #021b66;
color: #ffffff;
}
.border-021b66 {
border: 2px solid #021b66;
}
:root {
--color-primary: #021b66;
--color-primary-rgb: 2 27 102;
--color-primary-hsl: 225 96% 20%;
}
.gradient-021b66 {
background: linear-gradient(135deg, #021b66, #1b0266);
}
.shadow-021b66 {
box-shadow: 0 8px 24px rgb(2 27 102 / 0.35);
}
Midnight Blue
#021b66 rgb(2, 27, 102) hsl(225, 96%, 20%) Midnight Blue
#664d02 rgb(102, 77, 2) hsl(45, 96%, 20%) Field Drab
#66021b rgb(102, 2, 27) hsl(345, 96%, 20%) Rosewood
#1b6602 rgb(27, 102, 2) hsl(105, 96%, 20%) Pakistan Green