#2a1256 ≈ Midnight Blue
#2a1256 is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 7.06% green and 33.73% blue; printed in CMYK it uses 51.16% cyan, 79.07% magenta, 0% yellow and 66.27% black. Its hue angle is 261.18°, with 65.38% saturation and 20.39% 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.92:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.05.
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.016 |
Shades
#2a1256 mixed progressively with black.
Tints
#2a1256 mixed progressively with white.
Tones
#2a1256 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a1256 {
color: #2a1256;
}
.bg-2a1256 {
background-color: #2a1256;
color: #ffffff;
}
.border-2a1256 {
border: 2px solid #2a1256;
}
:root {
--color-primary: #2a1256;
--color-primary-rgb: 42 18 86;
--color-primary-hsl: 261 65% 20%;
}
.gradient-2a1256 {
background: linear-gradient(135deg, #2a1256, #4c1256);
}
.shadow-2a1256 {
box-shadow: 0 8px 24px rgb(42 18 86 / 0.35);
}
Midnight Blue
#2a1256 rgb(42, 18, 86) hsl(261, 65%, 20%) Midnight Blue
#3e5612 rgb(62, 86, 18) hsl(81, 65%, 20%) Army Green
#562a12 rgb(86, 42, 18) hsl(21, 65%, 20%) Caput Mortuum
#12562a rgb(18, 86, 42) hsl(141, 65%, 20%) Hunter Green