#2c1237 ≈ Midnight Blue
#2c1237 is a color from the magenta family, with very low lightness and muted saturation. In the RGB model it is made of 17.25% red, 7.06% green and 21.57% blue; printed in CMYK it uses 20% cyan, 67.27% magenta, 0% yellow and 78.43% black. Its hue angle is 282.16°, 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.82:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 14.02.
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.0124 |
Shades
#2c1237 mixed progressively with black.
Tints
#2c1237 mixed progressively with white.
Tones
#2c1237 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2c1237 {
color: #2c1237;
}
.bg-2c1237 {
background-color: #2c1237;
color: #ffffff;
}
.border-2c1237 {
border: 2px solid #2c1237;
}
:root {
--color-primary: #2c1237;
--color-primary-rgb: 44 18 55;
--color-primary-hsl: 282 51% 14%;
}
.gradient-2c1237 {
background: linear-gradient(135deg, #2c1237, #37122f);
}
.shadow-2c1237 {
box-shadow: 0 8px 24px rgb(44 18 55 / 0.35);
}
Midnight Blue
#2c1237 rgb(44, 18, 55) hsl(282, 51%, 14%) Midnight Blue
#1d3712 rgb(29, 55, 18) hsl(102, 51%, 14%) British Racing Green
#372c12 rgb(55, 44, 18) hsl(42, 51%, 14%) Bistre
#12372c rgb(18, 55, 44) hsl(162, 51%, 14%) Phthalo Green