#1f024a ≈ Midnight Blue
#1f024a is a color from the violet family, with very low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 0.78% green and 29.02% blue; printed in CMYK it uses 58.11% cyan, 97.3% magenta, 0% yellow and 70.98% black. Its hue angle is 264.17°, with 94.74% saturation and 14.9% 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 18.01:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.2.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0083 |
Shades
#1f024a mixed progressively with black.
Tints
#1f024a mixed progressively with white.
Tones
#1f024a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-1f024a {
color: #1f024a;
}
.bg-1f024a {
background-color: #1f024a;
color: #ffffff;
}
.border-1f024a {
border: 2px solid #1f024a;
}
:root {
--color-primary: #1f024a;
--color-primary-rgb: 31 2 74;
--color-primary-hsl: 264 95% 15%;
}
.gradient-1f024a {
background: linear-gradient(135deg, #1f024a, #43024a);
}
.shadow-1f024a {
box-shadow: 0 8px 24px rgb(31 2 74 / 0.35);
}
Midnight Blue
#1f024a rgb(31, 2, 74) hsl(264, 95%, 15%) Midnight Blue
#2d4a02 rgb(45, 74, 2) hsl(84, 95%, 15%) Lincoln Green
#4a1f02 rgb(74, 31, 2) hsl(24, 95%, 15%) Caput Mortuum
#024a1f rgb(2, 74, 31) hsl(144, 95%, 15%) British Racing Green