#2d155f ≈ Midnight Blue
#2d155f is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 17.65% red, 8.24% green and 37.25% blue; printed in CMYK it uses 52.63% cyan, 77.89% magenta, 0% yellow and 62.75% black. Its hue angle is 259.46°, with 63.79% saturation and 22.75% 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.17:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.82.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0192 |
Shades
#2d155f mixed progressively with black.
Tints
#2d155f mixed progressively with white.
Tones
#2d155f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2d155f {
color: #2d155f;
}
.bg-2d155f {
background-color: #2d155f;
color: #ffffff;
}
.border-2d155f {
border: 2px solid #2d155f;
}
:root {
--color-primary: #2d155f;
--color-primary-rgb: 45 21 95;
--color-primary-hsl: 259 64% 23%;
}
.gradient-2d155f {
background: linear-gradient(135deg, #2d155f, #52155f);
}
.shadow-2d155f {
box-shadow: 0 8px 24px rgb(45 21 95 / 0.35);
}
Midnight Blue
#2d155f rgb(45, 21, 95) hsl(259, 64%, 23%) Midnight Blue
#475f15 rgb(71, 95, 21) hsl(79, 64%, 23%) Dark Olive Green
#5f2d15 rgb(95, 45, 21) hsl(19, 64%, 23%) Caput Mortuum
#155f2d rgb(21, 95, 45) hsl(139, 64%, 23%) Cadmium Green