#331c4e ≈ Midnight Blue
#331c4e is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 10.98% green and 30.59% blue; printed in CMYK it uses 34.62% cyan, 64.1% magenta, 0% yellow and 69.41% black. Its hue angle is 267.6°, with 47.17% saturation and 20.78% 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.82:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.59.
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.0208 |
Shades
#331c4e mixed progressively with black.
Tints
#331c4e mixed progressively with white.
Tones
#331c4e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331c4e {
color: #331c4e;
}
.bg-331c4e {
background-color: #331c4e;
color: #ffffff;
}
.border-331c4e {
border: 2px solid #331c4e;
}
:root {
--color-primary: #331c4e;
--color-primary-rgb: 51 28 78;
--color-primary-hsl: 268 47% 21%;
}
.gradient-331c4e {
background: linear-gradient(135deg, #331c4e, #4c1c4e);
}
.shadow-331c4e {
box-shadow: 0 8px 24px rgb(51 28 78 / 0.35);
}
Midnight Blue
#331c4e rgb(51, 28, 78) hsl(268, 47%, 21%) Midnight Blue
#374e1c rgb(55, 78, 28) hsl(88, 47%, 21%) Army Green
#4e331c rgb(78, 51, 28) hsl(28, 47%, 21%) Bistre
#1c4e33 rgb(28, 78, 51) hsl(148, 47%, 21%) British Racing Green