#2a1237 ≈ Midnight Blue
#2a1237 is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 16.47% red, 7.06% green and 21.57% blue; printed in CMYK it uses 23.64% cyan, 67.27% magenta, 0% yellow and 78.43% black. Its hue angle is 278.92°, with 50.68% saturation and 14.31% 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 16.93:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 13.72.
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.012 |
Shades
#2a1237 mixed progressively with black.
Tints
#2a1237 mixed progressively with white.
Tones
#2a1237 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a1237 {
color: #2a1237;
}
.bg-2a1237 {
background-color: #2a1237;
color: #ffffff;
}
.border-2a1237 {
border: 2px solid #2a1237;
}
:root {
--color-primary: #2a1237;
--color-primary-rgb: 42 18 55;
--color-primary-hsl: 279 51% 14%;
}
.gradient-2a1237 {
background: linear-gradient(135deg, #2a1237, #371231);
}
.shadow-2a1237 {
box-shadow: 0 8px 24px rgb(42 18 55 / 0.35);
}
Midnight Blue
#2a1237 rgb(42, 18, 55) hsl(279, 51%, 14%) Midnight Blue
#1f3712 rgb(31, 55, 18) hsl(99, 51%, 14%) Phthalo Green
#372a12 rgb(55, 42, 18) hsl(39, 51%, 14%) Bistre
#12372a rgb(18, 55, 42) hsl(159, 51%, 14%) Phthalo Green