#331d50 ≈ Midnight Blue
#331d50 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 11.37% green and 31.37% blue; printed in CMYK it uses 36.25% cyan, 63.75% magenta, 0% yellow and 68.63% black. Its hue angle is 265.88°, with 46.79% saturation and 21.37% 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.66:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.19.
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.0216 |
Shades
#331d50 mixed progressively with black.
Tints
#331d50 mixed progressively with white.
Tones
#331d50 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331d50 {
color: #331d50;
}
.bg-331d50 {
background-color: #331d50;
color: #ffffff;
}
.border-331d50 {
border: 2px solid #331d50;
}
:root {
--color-primary: #331d50;
--color-primary-rgb: 51 29 80;
--color-primary-hsl: 266 47% 21%;
}
.gradient-331d50 {
background: linear-gradient(135deg, #331d50, #4c1d50);
}
.shadow-331d50 {
box-shadow: 0 8px 24px rgb(51 29 80 / 0.35);
}
Midnight Blue
#331d50 rgb(51, 29, 80) hsl(266, 47%, 21%) Midnight Blue
#3a501d rgb(58, 80, 29) hsl(86, 47%, 21%) Army Green
#50331d rgb(80, 51, 29) hsl(26, 47%, 21%) Bistre
#1d5033 rgb(29, 80, 51) hsl(146, 47%, 21%) British Racing Green