#0C1117 color
The hex color #0C1117 is a very dark, desaturated azure.
In the RGB color model it is made of 4.7% red, 6.7% green and 9% blue (12, 17, 23).
Its hue angle is 213°, with 31% saturation and 7% lightness. For print, the CMYK equivalent is 48% cyan, 26% magenta, 0% yellow and 91% black.
The closest named color is Dark Rift (#060B14), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 18.95:1).
#0C1117 color codes
| HEX | #0C1117 | |
|---|---|---|
| RGB | rgb(12, 17, 23) | |
| RGB percent | rgb(4.7%, 6.7%, 9%) | |
| HSL | hsl(213, 31%, 7%) | |
| HSV / HSB | hsv(213, 48%, 9%) | |
| CMYK | cmyk(48%, 26%, 0%, 91%) | |
| CIE LAB | lab(4.89, -0.3, -4.28) | |
| CIE LCH | lch(4.89, 4.29, 265.93) | |
| CIE XYZ | xyz(0.507, 0.541, 0.888) | |
| Decimal | 790807 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1117, 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 #0C1117 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.11:1 | Fail | Fail | Fail |
| Sample text | 18.95:1 | Pass | Pass | Pass |
| #0C1117 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.95:1 | Pass | Pass | Pass |
| Sample text | 1.11: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 #0C1117 looks to people with the most common types of color vision deficiency.
#0f1117Protanopia
no red cones#0e1017Deuteranopia
no green cones#091213Tritanopia
no blue cones#111111Achromatopsia
no color vision
CSS examples
.background { background-color: #0c1117; }
.text { color: #0c1117; }
.border { border: 2px solid #0c1117; }
.transparent { background-color: rgb(12 17 23 / 50%); }
.gradient { background: linear-gradient(to right, #0c1117, #0d0c17); }
Similar colors
#060b14Dark Rift#010b13Rich Black#010b13Black Knight#0c121bMidnight Edition#0b0c14Midnight Oil#0b0c10Midnight Black#0f1012Ruined Smores#03050aEight Ball
Questions
- What color is #0C1117?
- #0C1117 is a very dark, desaturated azure, closest to the named color Dark Rift. It belongs to the black family of colors.
- What is the RGB value of #0C1117?
- The RGB value is 12, 17, 23: 12 red, 17 green and 23 blue on a 0 to 255 scale.
- What is the complementary color of #0C1117?
- The complementary color is #17120C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1117?
- White text. Black text has a contrast ratio of 1.11:1 and white text 18.95:1. WCAG asks for at least 4.5:1 for normal text.