#031f72 ≈ Midnight Blue
#031f72 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.18% red, 12.16% green and 44.71% blue; printed in CMYK it uses 97.37% cyan, 72.81% magenta, 0% yellow and 55.29% black. Its hue angle is 224.86°, with 94.87% saturation and 22.94% 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.55:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.85.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #003366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0221 |
Shades
#031f72 mixed progressively with black.
Tints
#031f72 mixed progressively with white.
Tones
#031f72 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-031f72 {
color: #031f72;
}
.bg-031f72 {
background-color: #031f72;
color: #ffffff;
}
.border-031f72 {
border: 2px solid #031f72;
}
:root {
--color-primary: #031f72;
--color-primary-rgb: 3 31 114;
--color-primary-hsl: 225 95% 23%;
}
.gradient-031f72 {
background: linear-gradient(135deg, #031f72, #1e0372);
}
.shadow-031f72 {
box-shadow: 0 8px 24px rgb(3 31 114 / 0.35);
}
Midnight Blue
#031f72 rgb(3, 31, 114) hsl(225, 95%, 23%) Midnight Blue
#725603 rgb(114, 86, 3) hsl(45, 95%, 23%) Field Drab
#72031f rgb(114, 3, 31) hsl(345, 95%, 23%) Burgundy
#1f7203 rgb(31, 114, 3) hsl(105, 95%, 23%) Pakistan Green