#0c1958 ≈ Midnight Blue
#0c1958 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, 9.8% green and 34.51% blue; printed in CMYK it uses 86.36% cyan, 71.59% magenta, 0% yellow and 65.49% black. Its hue angle is 229.74°, with 76% saturation and 19.61% 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 16.21:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.76.
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.0148 |
Shades
#0c1958 mixed progressively with black.
Tints
#0c1958 mixed progressively with white.
Tones
#0c1958 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0c1958 {
color: #0c1958;
}
.bg-0c1958 {
background-color: #0c1958;
color: #ffffff;
}
.border-0c1958 {
border: 2px solid #0c1958;
}
:root {
--color-primary: #0c1958;
--color-primary-rgb: 12 25 88;
--color-primary-hsl: 230 76% 20%;
}
.gradient-0c1958 {
background: linear-gradient(135deg, #0c1958, #250c58);
}
.shadow-0c1958 {
box-shadow: 0 8px 24px rgb(12 25 88 / 0.35);
}
Midnight Blue
#0c1958 rgb(12, 25, 88) hsl(230, 76%, 20%) Midnight Blue
#584b0c rgb(88, 75, 12) hsl(50, 76%, 20%) Field Drab
#580c19 rgb(88, 12, 25) hsl(350, 76%, 20%) Rosewood
#19580c rgb(25, 88, 12) hsl(110, 76%, 20%) Lincoln Green