#1f217e ≈ Midnight Blue
#1f217e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 12.94% green and 49.41% blue; printed in CMYK it uses 75.4% cyan, 73.81% magenta, 0% yellow and 50.59% black. Its hue angle is 238.74°, with 60.51% saturation and 30.78% 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 corporate identities. White text on this color reaches a contrast ratio of 13.32:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.75.
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.0289 |
Shades
#1f217e mixed progressively with black.
Tints
#1f217e mixed progressively with white.
Tones
#1f217e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-1f217e {
color: #1f217e;
}
.bg-1f217e {
background-color: #1f217e;
color: #ffffff;
}
.border-1f217e {
border: 2px solid #1f217e;
}
:root {
--color-primary: #1f217e;
--color-primary-rgb: 31 33 126;
--color-primary-hsl: 239 61% 31%;
}
.gradient-1f217e {
background: linear-gradient(135deg, #1f217e, #4c1f7e);
}
.shadow-1f217e {
box-shadow: 0 8px 24px rgb(31 33 126 / 0.35);
}
Midnight Blue
#1f217e rgb(31, 33, 126) hsl(239, 61%, 31%) Midnight Blue
#7e7c1f rgb(126, 124, 31) hsl(59, 61%, 31%) Olive
#7e1f21 rgb(126, 31, 33) hsl(359, 61%, 31%) Falu Red
#217e1f rgb(33, 126, 31) hsl(119, 61%, 31%) Green