#331a4d ≈ Midnight Blue
#331a4d 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 30.2% blue; printed in CMYK it uses 33.77% cyan, 66.23% magenta, 0% yellow and 69.8% black. Its hue angle is 269.41°, with 49.51% saturation and 20.2% 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.05:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.67.
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.0198 |
Shades
#331a4d mixed progressively with black.
Tints
#331a4d mixed progressively with white.
Tones
#331a4d mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331a4d {
color: #331a4d;
}
.bg-331a4d {
background-color: #331a4d;
color: #ffffff;
}
.border-331a4d {
border: 2px solid #331a4d;
}
:root {
--color-primary: #331a4d;
--color-primary-rgb: 51 26 77;
--color-primary-hsl: 269 50% 20%;
}
.gradient-331a4d {
background: linear-gradient(135deg, #331a4d, #4d1a4d);
}
.shadow-331a4d {
box-shadow: 0 8px 24px rgb(51 26 77 / 0.35);
}
Midnight Blue
#331a4d rgb(51, 26, 77) hsl(269, 50%, 20%) Midnight Blue
#344d1a rgb(52, 77, 26) hsl(89, 50%, 20%) Army Green
#4d331a rgb(77, 51, 26) hsl(29, 50%, 20%) Bistre
#1a4d33 rgb(26, 77, 51) hsl(149, 50%, 20%) British Racing Green