#2a154e ≈ Midnight Blue
#2a154e 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, 8.24% green and 30.59% blue; printed in CMYK it uses 46.15% cyan, 73.08% magenta, 0% yellow and 69.41% black. Its hue angle is 262.11°, with 57.58% saturation and 19.41% 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.96:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.72.
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.0158 |
Shades
#2a154e mixed progressively with black.
Tints
#2a154e mixed progressively with white.
Tones
#2a154e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a154e {
color: #2a154e;
}
.bg-2a154e {
background-color: #2a154e;
color: #ffffff;
}
.border-2a154e {
border: 2px solid #2a154e;
}
:root {
--color-primary: #2a154e;
--color-primary-rgb: 42 21 78;
--color-primary-hsl: 262 58% 19%;
}
.gradient-2a154e {
background: linear-gradient(135deg, #2a154e, #46154e);
}
.shadow-2a154e {
box-shadow: 0 8px 24px rgb(42 21 78 / 0.35);
}
Midnight Blue
#2a154e rgb(42, 21, 78) hsl(262, 58%, 19%) Midnight Blue
#394e15 rgb(57, 78, 21) hsl(82, 58%, 19%) Army Green
#4e2a15 rgb(78, 42, 21) hsl(22, 58%, 19%) Bistre
#154e2a rgb(21, 78, 42) hsl(142, 58%, 19%) British Racing Green