#0c0d4e ≈ Midnight Blue
#0c0d4e is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 5.1% green and 30.59% blue; printed in CMYK it uses 84.62% cyan, 83.33% magenta, 0% yellow and 69.41% black. Its hue angle is 239.09°, with 73.33% saturation and 17.65% 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 17.75:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.03.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #000066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0092 |
Shades
#0c0d4e mixed progressively with black.
Tints
#0c0d4e mixed progressively with white.
Tones
#0c0d4e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0c0d4e {
color: #0c0d4e;
}
.bg-0c0d4e {
background-color: #0c0d4e;
color: #ffffff;
}
.border-0c0d4e {
border: 2px solid #0c0d4e;
}
:root {
--color-primary: #0c0d4e;
--color-primary-rgb: 12 13 78;
--color-primary-hsl: 239 73% 18%;
}
.gradient-0c0d4e {
background: linear-gradient(135deg, #0c0d4e, #2c0c4e);
}
.shadow-0c0d4e {
box-shadow: 0 8px 24px rgb(12 13 78 / 0.35);
}
Midnight Blue
#0c0d4e rgb(12, 13, 78) hsl(239, 73%, 18%) Midnight Blue
#4e4d0c rgb(78, 77, 12) hsl(59, 73%, 18%) Army Green
#4e0c0d rgb(78, 12, 13) hsl(359, 73%, 18%) Rosewood
#0d4e0c rgb(13, 78, 12) hsl(119, 73%, 18%) Lincoln Green