#2f215b ≈ Midnight Blue
#2f215b is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 18.43% red, 12.94% green and 35.69% blue; printed in CMYK it uses 48.35% cyan, 63.74% magenta, 0% yellow and 64.31% black. Its hue angle is 254.48°, with 46.77% saturation and 24.31% 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 14.1:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.53.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #333366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0245 |
Shades
#2f215b mixed progressively with black.
Tints
#2f215b mixed progressively with white.
Tones
#2f215b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2f215b {
color: #2f215b;
}
.bg-2f215b {
background-color: #2f215b;
color: #ffffff;
}
.border-2f215b {
border: 2px solid #2f215b;
}
:root {
--color-primary: #2f215b;
--color-primary-rgb: 47 33 91;
--color-primary-hsl: 254 47% 24%;
}
.gradient-2f215b {
background: linear-gradient(135deg, #2f215b, #4c215b);
}
.shadow-2f215b {
box-shadow: 0 8px 24px rgb(47 33 91 / 0.35);
}
Midnight Blue
#2f215b rgb(47, 33, 91) hsl(254, 47%, 24%) Midnight Blue
#4d5b21 rgb(77, 91, 33) hsl(74, 47%, 24%) Army Green
#5b2f21 rgb(91, 47, 33) hsl(14, 47%, 24%) Caput Mortuum
#215b2f rgb(33, 91, 47) hsl(134, 47%, 24%) Hunter Green