#0C1018 color
The hex color #0C1018 is a very dark, desaturated blue.
In the RGB color model it is made of 4.7% red, 6.3% green and 9.4% blue (12, 16, 24).
Its hue angle is 220°, with 33% saturation and 7% lightness. For print, the CMYK equivalent is 50% cyan, 33% magenta, 0% yellow and 91% black.
The closest named color is Dark Rift (#060B14), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.04:1).
#0C1018 color codes
| HEX | #0C1018 | |
|---|---|---|
| RGB | rgb(12, 16, 24) | |
| RGB percent | rgb(4.7%, 6.3%, 9.4%) | |
| HSL | hsl(220, 33%, 7%) | |
| HSV / HSB | hsv(220, 50%, 9%) | |
| CMYK | cmyk(50%, 33%, 0%, 91%) | |
| CIE LAB | lab(4.65, 0.51, -5.39) | |
| CIE LCH | lch(4.65, 5.41, 275.45) | |
| CIE XYZ | xyz(0.502, 0.515, 0.937) | |
| Decimal | 790552 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1018, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #0C1018 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.1:1 | Fail | Fail | Fail |
| Sample text | 19.04:1 | Pass | Pass | Pass |
| #0C1018 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.04:1 | Pass | Pass | Pass |
| Sample text | 1.1:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #0C1018 looks to people with the most common types of color vision deficiency.
#0d1118Protanopia
no red cones#0c0f18Deuteranopia
no green cones#091213Tritanopia
no blue cones#101010Achromatopsia
no color vision
CSS examples
.background { background-color: #0c1018; }
.text { color: #0c1018; }
.border { border: 2px solid #0c1018; }
.transparent { background-color: rgb(12 16 24 / 50%); }
.gradient { background: linear-gradient(to right, #0c1018, #0e0c18); }
Similar colors
#060b14Dark Rift#0c121bMidnight Edition#0b0c14Midnight Oil#080813Narwhal Gray#010b13Rich Black#010b13Black Knight#16161dEigengrau#0b0c10Midnight Black
Questions
- What color is #0C1018?
- #0C1018 is a very dark, desaturated blue, closest to the named color Dark Rift. It belongs to the black family of colors.
- What is the RGB value of #0C1018?
- The RGB value is 12, 16, 24: 12 red, 16 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #0C1018?
- The complementary color is #18140C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1018?
- White text. Black text has a contrast ratio of 1.1:1 and white text 19.04:1. WCAG asks for at least 4.5:1 for normal text.