#020f56 ≈ Midnight Blue
#020f56 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, 5.88% green and 33.73% blue; printed in CMYK it uses 97.67% cyan, 82.56% magenta, 0% yellow and 66.27% black. Its hue angle is 230.71°, with 95.45% saturation and 17.25% 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 17.42:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.81.
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.0103 |
Shades
#020f56 mixed progressively with black.
Tints
#020f56 mixed progressively with white.
Tones
#020f56 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-020f56 {
color: #020f56;
}
.bg-020f56 {
background-color: #020f56;
color: #ffffff;
}
.border-020f56 {
border: 2px solid #020f56;
}
:root {
--color-primary: #020f56;
--color-primary-rgb: 2 15 86;
--color-primary-hsl: 231 95% 17%;
}
.gradient-020f56 {
background: linear-gradient(135deg, #020f56, #1f0256);
}
.shadow-020f56 {
box-shadow: 0 8px 24px rgb(2 15 86 / 0.35);
}
Midnight Blue
#020f56 rgb(2, 15, 86) hsl(231, 95%, 17%) Midnight Blue
#564902 rgb(86, 73, 2) hsl(51, 95%, 17%) Field Drab
#56020f rgb(86, 2, 15) hsl(351, 95%, 17%) Rosewood
#0f5602 rgb(15, 86, 2) hsl(111, 95%, 17%) Lincoln Green