#331a4c ≈ Midnight Blue
#331a4c is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 10.2% green and 29.8% blue; printed in CMYK it uses 32.89% cyan, 65.79% magenta, 0% yellow and 70.2% black. Its hue angle is 270°, with 49.02% saturation and 20% 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.08:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.92.
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.0196 |
Shades
#331a4c mixed progressively with black.
Tints
#331a4c mixed progressively with white.
Tones
#331a4c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331a4c {
color: #331a4c;
}
.bg-331a4c {
background-color: #331a4c;
color: #ffffff;
}
.border-331a4c {
border: 2px solid #331a4c;
}
:root {
--color-primary: #331a4c;
--color-primary-rgb: 51 26 76;
--color-primary-hsl: 270 49% 20%;
}
.gradient-331a4c {
background: linear-gradient(135deg, #331a4c, #4c1a4c);
}
.shadow-331a4c {
box-shadow: 0 8px 24px rgb(51 26 76 / 0.35);
}
Midnight Blue
#331a4c rgb(51, 26, 76) hsl(270, 49%, 20%) Midnight Blue
#334c1a rgb(51, 76, 26) hsl(90, 49%, 20%) Army Green
#4c331a rgb(76, 51, 26) hsl(30, 49%, 20%) Bistre
#1a4c33 rgb(26, 76, 51) hsl(150, 49%, 20%) British Racing Green