#020251 ≈ Midnight Blue
#020251 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, 0.78% green and 31.76% blue; printed in CMYK it uses 97.53% cyan, 97.53% magenta, 0% yellow and 68.24% black. Its hue angle is 240°, with 95.18% saturation and 16.27% 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 18.58:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.67.
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.0065 |
Shades
#020251 mixed progressively with black.
Tints
#020251 mixed progressively with white.
Tones
#020251 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-020251 {
color: #020251;
}
.bg-020251 {
background-color: #020251;
color: #ffffff;
}
.border-020251 {
border: 2px solid #020251;
}
:root {
--color-primary: #020251;
--color-primary-rgb: 2 2 81;
--color-primary-hsl: 240 95% 16%;
}
.gradient-020251 {
background: linear-gradient(135deg, #020251, #290251);
}
.shadow-020251 {
box-shadow: 0 8px 24px rgb(2 2 81 / 0.35);
}
Midnight Blue
#020251 rgb(2, 2, 81) hsl(240, 95%, 16%) Midnight Blue
#515102 rgb(81, 81, 2) hsl(60, 95%, 16%) Army Green
#510202 rgb(81, 2, 2) hsl(0, 95%, 16%) Rosewood
#025102 rgb(2, 81, 2) hsl(120, 95%, 16%) Lincoln Green