#2a135e ≈ Midnight Blue
#2a135e 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.45% green and 36.86% blue; printed in CMYK it uses 55.32% cyan, 79.79% magenta, 0% yellow and 63.14% black. Its hue angle is 258.4°, with 66.37% saturation and 22.16% 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.52:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.63.
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.0177 |
Shades
#2a135e mixed progressively with black.
Tints
#2a135e mixed progressively with white.
Tones
#2a135e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a135e {
color: #2a135e;
}
.bg-2a135e {
background-color: #2a135e;
color: #ffffff;
}
.border-2a135e {
border: 2px solid #2a135e;
}
:root {
--color-primary: #2a135e;
--color-primary-rgb: 42 19 94;
--color-primary-hsl: 258 66% 22%;
}
.gradient-2a135e {
background: linear-gradient(135deg, #2a135e, #50135e);
}
.shadow-2a135e {
box-shadow: 0 8px 24px rgb(42 19 94 / 0.35);
}
Midnight Blue
#2a135e rgb(42, 19, 94) hsl(258, 66%, 22%) Midnight Blue
#475e13 rgb(71, 94, 19) hsl(78, 66%, 22%) Dark Olive Green
#5e2a13 rgb(94, 42, 19) hsl(18, 66%, 22%) Caput Mortuum
#135e2a rgb(19, 94, 42) hsl(138, 66%, 22%) Cadmium Green