#331d64 ≈ Midnight Blue
#331d64 is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 20% red, 11.37% green and 39.22% blue; printed in CMYK it uses 49% cyan, 71% magenta, 0% yellow and 60.78% black. Its hue angle is 258.59°, with 55.04% saturation and 25.29% 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:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.08.
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.025 |
Shades
#331d64 mixed progressively with black.
Tints
#331d64 mixed progressively with white.
Tones
#331d64 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331d64 {
color: #331d64;
}
.bg-331d64 {
background-color: #331d64;
color: #ffffff;
}
.border-331d64 {
border: 2px solid #331d64;
}
:root {
--color-primary: #331d64;
--color-primary-rgb: 51 29 100;
--color-primary-hsl: 259 55% 25%;
}
.gradient-331d64 {
background: linear-gradient(135deg, #331d64, #561d64);
}
.shadow-331d64 {
box-shadow: 0 8px 24px rgb(51 29 100 / 0.35);
}
Midnight Blue
#331d64 rgb(51, 29, 100) hsl(259, 55%, 25%) Midnight Blue
#4e641d rgb(78, 100, 29) hsl(79, 55%, 25%) Dark Olive Green
#64331d rgb(100, 51, 29) hsl(19, 55%, 25%) Caput Mortuum
#1d6433 rgb(29, 100, 51) hsl(139, 55%, 25%) Cadmium Green