#2b1a5e ≈ Midnight Blue
#2b1a5e is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 16.86% red, 10.2% green and 36.86% blue; printed in CMYK it uses 54.26% cyan, 72.34% magenta, 0% yellow and 63.14% black. Its hue angle is 255°, with 56.67% saturation and 23.53% 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 14.87:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.67.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #333366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0206 |
Shades
#2b1a5e mixed progressively with black.
Tints
#2b1a5e mixed progressively with white.
Tones
#2b1a5e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2b1a5e {
color: #2b1a5e;
}
.bg-2b1a5e {
background-color: #2b1a5e;
color: #ffffff;
}
.border-2b1a5e {
border: 2px solid #2b1a5e;
}
:root {
--color-primary: #2b1a5e;
--color-primary-rgb: 43 26 94;
--color-primary-hsl: 255 57% 24%;
}
.gradient-2b1a5e {
background: linear-gradient(135deg, #2b1a5e, #4d1a5e);
}
.shadow-2b1a5e {
box-shadow: 0 8px 24px rgb(43 26 94 / 0.35);
}
Midnight Blue
#2b1a5e rgb(43, 26, 94) hsl(255, 57%, 24%) Midnight Blue
#4d5e1a rgb(77, 94, 26) hsl(75, 57%, 24%) Army Green
#5e2b1a rgb(94, 43, 26) hsl(15, 57%, 24%) Caput Mortuum
#1a5e2b rgb(26, 94, 43) hsl(135, 57%, 24%) Cadmium Green