#2d1237 ≈ Midnight Blue
#2d1237 is a color from the magenta family, with very low lightness and muted saturation. In the RGB model it is made of 17.65% red, 7.06% green and 21.57% blue; printed in CMYK it uses 18.18% cyan, 67.27% magenta, 0% yellow and 78.43% black. Its hue angle is 283.78°, with 50.68% saturation and 14.31% lightness in HSL. It is a cool color, often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 16.76:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 14.18.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0127 |
Shades
#2d1237 mixed progressively with black.
Tints
#2d1237 mixed progressively with white.
Tones
#2d1237 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2d1237 {
color: #2d1237;
}
.bg-2d1237 {
background-color: #2d1237;
color: #ffffff;
}
.border-2d1237 {
border: 2px solid #2d1237;
}
:root {
--color-primary: #2d1237;
--color-primary-rgb: 45 18 55;
--color-primary-hsl: 284 51% 14%;
}
.gradient-2d1237 {
background: linear-gradient(135deg, #2d1237, #37122e);
}
.shadow-2d1237 {
box-shadow: 0 8px 24px rgb(45 18 55 / 0.35);
}
Midnight Blue
#2d1237 rgb(45, 18, 55) hsl(284, 51%, 14%) Midnight Blue
#1c3712 rgb(28, 55, 18) hsl(104, 51%, 14%) British Racing Green
#372d12 rgb(55, 45, 18) hsl(44, 51%, 14%) Bistre
#12372d rgb(18, 55, 45) hsl(164, 51%, 14%) Phthalo Green