#2a124c ≈ Midnight Blue
#2a124c 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 29.8% blue; printed in CMYK it uses 44.74% cyan, 76.32% magenta, 0% yellow and 70.2% black. Its hue angle is 264.83°, with 61.7% saturation and 18.43% 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.29:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.13.
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.0145 |
Shades
#2a124c mixed progressively with black.
Tints
#2a124c mixed progressively with white.
Tones
#2a124c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a124c {
color: #2a124c;
}
.bg-2a124c {
background-color: #2a124c;
color: #ffffff;
}
.border-2a124c {
border: 2px solid #2a124c;
}
:root {
--color-primary: #2a124c;
--color-primary-rgb: 42 18 76;
--color-primary-hsl: 265 62% 18%;
}
.gradient-2a124c {
background: linear-gradient(135deg, #2a124c, #47124c);
}
.shadow-2a124c {
box-shadow: 0 8px 24px rgb(42 18 76 / 0.35);
}
Midnight Blue
#2a124c rgb(42, 18, 76) hsl(265, 62%, 18%) Midnight Blue
#344c12 rgb(52, 76, 18) hsl(85, 62%, 18%) Army Green
#4c2a12 rgb(76, 42, 18) hsl(25, 62%, 18%) Bistre
#124c2a rgb(18, 76, 42) hsl(145, 62%, 18%) British Racing Green