#1f286a ≈ Midnight Blue
#1f286a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 15.69% green and 41.57% blue; printed in CMYK it uses 70.75% cyan, 62.26% magenta, 0% yellow and 58.43% black. Its hue angle is 232.8°, with 54.74% saturation and 26.86% 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 13.38:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.14.
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.0285 |
Shades
#1f286a mixed progressively with black.
Tints
#1f286a mixed progressively with white.
Tones
#1f286a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-1f286a {
color: #1f286a;
}
.bg-1f286a {
background-color: #1f286a;
color: #ffffff;
}
.border-1f286a {
border: 2px solid #1f286a;
}
:root {
--color-primary: #1f286a;
--color-primary-rgb: 31 40 106;
--color-primary-hsl: 233 55% 27%;
}
.gradient-1f286a {
background: linear-gradient(135deg, #1f286a, #3b1f6a);
}
.shadow-1f286a {
box-shadow: 0 8px 24px rgb(31 40 106 / 0.35);
}
Midnight Blue
#1f286a rgb(31, 40, 106) hsl(233, 55%, 27%) Midnight Blue
#6a611f rgb(106, 97, 31) hsl(53, 55%, 27%) Field Drab
#6a1f28 rgb(106, 31, 40) hsl(353, 55%, 27%) Wine
#286a1f rgb(40, 106, 31) hsl(113, 55%, 27%) Pakistan Green