#331f51 ≈ Midnight Blue
#331f51 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20% red, 12.16% green and 31.76% blue; printed in CMYK it uses 37.04% cyan, 61.73% magenta, 0% yellow and 68.24% black. Its hue angle is 264°, with 44.64% saturation and 21.96% 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.43:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.17.
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.0228 |
Shades
#331f51 mixed progressively with black.
Tints
#331f51 mixed progressively with white.
Tones
#331f51 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-331f51 {
color: #331f51;
}
.bg-331f51 {
background-color: #331f51;
color: #ffffff;
}
.border-331f51 {
border: 2px solid #331f51;
}
:root {
--color-primary: #331f51;
--color-primary-rgb: 51 31 81;
--color-primary-hsl: 264 45% 22%;
}
.gradient-331f51 {
background: linear-gradient(135deg, #331f51, #4c1f51);
}
.shadow-331f51 {
box-shadow: 0 8px 24px rgb(51 31 81 / 0.35);
}
Midnight Blue
#331f51 rgb(51, 31, 81) hsl(264, 45%, 22%) Midnight Blue
#3d511f rgb(61, 81, 31) hsl(84, 45%, 22%) Army Green
#51331f rgb(81, 51, 31) hsl(24, 45%, 22%) Bistre
#1f5133 rgb(31, 81, 51) hsl(144, 45%, 22%) Hunter Green