#1a1f5f ≈ Midnight Blue
#1a1f5f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 10.2% red, 12.16% green and 37.25% blue; printed in CMYK it uses 72.63% cyan, 67.37% magenta, 0% yellow and 62.75% black. Its hue angle is 235.65°, with 57.02% saturation and 23.73% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and luxury branding. White text on this color reaches a contrast ratio of 14.94:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.2.
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.0203 |
Shades
#1a1f5f mixed progressively with black.
Tints
#1a1f5f mixed progressively with white.
Tones
#1a1f5f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-1a1f5f {
color: #1a1f5f;
}
.bg-1a1f5f {
background-color: #1a1f5f;
color: #ffffff;
}
.border-1a1f5f {
border: 2px solid #1a1f5f;
}
:root {
--color-primary: #1a1f5f;
--color-primary-rgb: 26 31 95;
--color-primary-hsl: 236 57% 24%;
}
.gradient-1a1f5f {
background: linear-gradient(135deg, #1a1f5f, #381a5f);
}
.shadow-1a1f5f {
box-shadow: 0 8px 24px rgb(26 31 95 / 0.35);
}
Midnight Blue
#1a1f5f rgb(26, 31, 95) hsl(236, 57%, 24%) Midnight Blue
#5f5a1a rgb(95, 90, 26) hsl(56, 57%, 24%) Army Green
#5f1a1f rgb(95, 26, 31) hsl(356, 57%, 24%) Caput Mortuum
#1f5f1a rgb(31, 95, 26) hsl(116, 57%, 24%) Lincoln Green