#0c1962 ≈ Midnight Blue
#0c1962 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 9.8% green and 38.43% blue; printed in CMYK it uses 87.76% cyan, 74.49% magenta, 0% yellow and 61.57% black. Its hue angle is 230.93°, with 78.18% saturation and 21.57% 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 15.78:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.9.
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.0166 |
Shades
#0c1962 mixed progressively with black.
Tints
#0c1962 mixed progressively with white.
Tones
#0c1962 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0c1962 {
color: #0c1962;
}
.bg-0c1962 {
background-color: #0c1962;
color: #ffffff;
}
.border-0c1962 {
border: 2px solid #0c1962;
}
:root {
--color-primary: #0c1962;
--color-primary-rgb: 12 25 98;
--color-primary-hsl: 231 78% 22%;
}
.gradient-0c1962 {
background: linear-gradient(135deg, #0c1962, #2a0c62);
}
.shadow-0c1962 {
box-shadow: 0 8px 24px rgb(12 25 98 / 0.35);
}
Midnight Blue
#0c1962 rgb(12, 25, 98) hsl(231, 78%, 22%) Midnight Blue
#62550c rgb(98, 85, 12) hsl(51, 78%, 22%) Field Drab
#620c19 rgb(98, 12, 25) hsl(351, 78%, 22%) Rosewood
#19620c rgb(25, 98, 12) hsl(111, 78%, 22%) Dark Green