#0C0C1E color
The hex color #0C0C1E is a very dark, desaturated blue.
In the RGB color model it is made of 4.7% red, 4.7% green and 11.8% blue (12, 12, 30).
Its hue angle is 240°, with 43% saturation and 8% lightness. For print, the CMYK equivalent is 60% cyan, 60% magenta, 0% yellow and 88% black.
The closest named color is Corbeau (#111122), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.32:1).
#0C0C1E color codes
| HEX | #0C0C1E | |
|---|---|---|
| RGB | rgb(12, 12, 30) | |
| RGB percent | rgb(4.7%, 4.7%, 11.8%) | |
| HSL | hsl(240, 43%, 8%) | |
| HSV / HSB | hsv(240, 60%, 12%) | |
| CMYK | cmyk(60%, 60%, 0%, 88%) | |
| CIE LAB | lab(3.93, 4.26, -11.17) | |
| CIE LCH | lch(3.93, 11.96, 290.89) | |
| CIE XYZ | xyz(0.517, 0.435, 1.285) | |
| Decimal | 789534 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C0C1E, 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 #0C0C1E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.09:1 | Fail | Fail | Fail |
| Sample text | 19.32:1 | Pass | Pass | Pass |
| #0C0C1E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.32:1 | Pass | Pass | Pass |
| Sample text | 1.09: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 #0C0C1E looks to people with the most common types of color vision deficiency.
#060f1fProtanopia
no red cones#050d1eDeuteranopia
no green cones#071013Tritanopia
no blue cones#0e0e0eAchromatopsia
no color vision
CSS examples
.background { background-color: #0c0c1e; }
.text { color: #0c0c1e; }
.border { border: 2px solid #0c0c1e; }
.transparent { background-color: rgb(12 12 30 / 50%); }
.gradient { background: linear-gradient(to right, #0c0c1e, #150c1e); }
Similar colors
#111122Corbeau#050d25Void#060313Obsidian Shard#16141cBack in Black#151931Dark Knight#080813Narwhal Gray#16161dEigengrau#161e34Sombre Night
Closest common color name: Midnight Black.
Questions
- What color is #0C0C1E?
- #0C0C1E is a very dark, desaturated blue, closest to the named color Corbeau. It belongs to the black family of colors.
- What is the RGB value of #0C0C1E?
- The RGB value is 12, 12, 30: 12 red, 12 green and 30 blue on a 0 to 255 scale.
- What is the complementary color of #0C0C1E?
- The complementary color is #1E1E0C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C0C1E?
- White text. Black text has a contrast ratio of 1.09:1 and white text 19.32:1. WCAG asks for at least 4.5:1 for normal text.