#2b204c ≈ Midnight Blue
#2b204c is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 16.86% red, 12.55% green and 29.8% blue; printed in CMYK it uses 43.42% cyan, 57.89% magenta, 0% yellow and 70.2% black. Its hue angle is 255°, with 40.74% saturation and 21.18% 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.85:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.55.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #333333 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0207 |
Shades
#2b204c mixed progressively with black.
Tints
#2b204c mixed progressively with white.
Tones
#2b204c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2b204c {
color: #2b204c;
}
.bg-2b204c {
background-color: #2b204c;
color: #ffffff;
}
.border-2b204c {
border: 2px solid #2b204c;
}
:root {
--color-primary: #2b204c;
--color-primary-rgb: 43 32 76;
--color-primary-hsl: 255 41% 21%;
}
.gradient-2b204c {
background: linear-gradient(135deg, #2b204c, #41204c);
}
.shadow-2b204c {
box-shadow: 0 8px 24px rgb(43 32 76 / 0.35);
}
Midnight Blue
#2b204c rgb(43, 32, 76) hsl(255, 41%, 21%) Midnight Blue
#414c20 rgb(65, 76, 32) hsl(75, 41%, 21%) Army Green
#4c2b20 rgb(76, 43, 32) hsl(15, 41%, 21%) Caput Mortuum
#204c2b rgb(32, 76, 43) hsl(135, 41%, 21%) British Racing Green