#0c217d ≈ Midnight Blue
#0c217d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 12.94% green and 49.02% blue; printed in CMYK it uses 90.4% cyan, 73.6% magenta, 0% yellow and 50.98% black. Its hue angle is 228.85°, with 82.48% 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.73:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.09.
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.0265 |
Shades
#0c217d mixed progressively with black.
Tints
#0c217d mixed progressively with white.
Tones
#0c217d mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0c217d {
color: #0c217d;
}
.bg-0c217d {
background-color: #0c217d;
color: #ffffff;
}
.border-0c217d {
border: 2px solid #0c217d;
}
:root {
--color-primary: #0c217d;
--color-primary-rgb: 12 33 125;
--color-primary-hsl: 229 82% 27%;
}
.gradient-0c217d {
background: linear-gradient(135deg, #0c217d, #2f0c7d);
}
.shadow-0c217d {
box-shadow: 0 8px 24px rgb(12 33 125 / 0.35);
}
Midnight Blue
#0c217d rgb(12, 33, 125) hsl(229, 82%, 27%) Midnight Blue
#7d680c rgb(125, 104, 12) hsl(49, 82%, 27%) Field Drab
#7d0c21 rgb(125, 12, 33) hsl(349, 82%, 27%) Burgundy
#217d0c rgb(33, 125, 12) hsl(109, 82%, 27%) Green