#21145f ≈ Midnight Blue
#21145f is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 12.94% red, 7.84% green and 37.25% blue; printed in CMYK it uses 65.26% cyan, 78.95% magenta, 0% yellow and 62.75% black. Its hue angle is 250.4°, with 65.22% saturation and 22.55% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 15.79:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.38.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0165 |
Shades
#21145f mixed progressively with black.
Tints
#21145f mixed progressively with white.
Tones
#21145f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-21145f {
color: #21145f;
}
.bg-21145f {
background-color: #21145f;
color: #ffffff;
}
.border-21145f {
border: 2px solid #21145f;
}
:root {
--color-primary: #21145f;
--color-primary-rgb: 33 20 95;
--color-primary-hsl: 250 65% 23%;
}
.gradient-21145f {
background: linear-gradient(135deg, #21145f, #47145f);
}
.shadow-21145f {
box-shadow: 0 8px 24px rgb(33 20 95 / 0.35);
}
Midnight Blue
#21145f rgb(33, 20, 95) hsl(250, 65%, 23%) Midnight Blue
#525f14 rgb(82, 95, 20) hsl(70, 65%, 23%) Army Green
#5f2114 rgb(95, 33, 20) hsl(10, 65%, 23%) Caput Mortuum
#145f21 rgb(20, 95, 33) hsl(130, 65%, 23%) Lincoln Green