#0C121C color
The hex color #0C121C is a very dark, desaturated azure.
In the RGB color model it is made of 4.7% red, 7.1% green and 11% blue (12, 18, 28).
Its hue angle is 218°, with 40% saturation and 8% lightness. For print, the CMYK equivalent is 57% cyan, 36% magenta, 0% yellow and 89% black.
The closest named color is Midnight Edition (#0C121B), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 18.77:1).
#0C121C color codes
| HEX | #0C121C | |
|---|---|---|
| RGB | rgb(12, 18, 28) | |
| RGB percent | rgb(4.7%, 7.1%, 11%) | |
| HSL | hsl(218, 40%, 8%) | |
| HSV / HSB | hsv(218, 57%, 11%) | |
| CMYK | cmyk(57%, 36%, 0%, 89%) | |
| CIE LAB | lab(5.37, 0.5, -7.45) | |
| CIE LCH | lch(5.37, 7.46, 273.88) | |
| CIE XYZ | xyz(0.577, 0.595, 1.183) | |
| Decimal | 791068 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C121C, 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 #0C121C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.12:1 | Fail | Fail | Fail |
| Sample text | 18.77:1 | Pass | Pass | Pass |
| #0C121C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.77:1 | Pass | Pass | Pass |
| Sample text | 1.12: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 #0C121C looks to people with the most common types of color vision deficiency.
#0e131cProtanopia
no red cones#0d111cDeuteranopia
no green cones#071415Tritanopia
no blue cones#121212Achromatopsia
no color vision
CSS examples
.background { background-color: #0c121c; }
.text { color: #0c121c; }
.border { border: 2px solid #0c121c; }
.transparent { background-color: rgb(12 18 28 / 50%); }
.gradient { background: linear-gradient(to right, #0c121c, #0e0c1c); }
Similar colors
#0c121bMidnight Edition#060b14Dark Rift#0b0c14Midnight Oil#16161dEigengrau#080813Narwhal Gray#010b13Rich Black#010b13Black Knight#16141cBack in Black
Questions
- What color is #0C121C?
- #0C121C is a very dark, desaturated azure, closest to the named color Midnight Edition. It belongs to the black family of colors.
- What is the RGB value of #0C121C?
- The RGB value is 12, 18, 28: 12 red, 18 green and 28 blue on a 0 to 255 scale.
- What is the complementary color of #0C121C?
- The complementary color is #1C160C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C121C?
- White text. Black text has a contrast ratio of 1.12:1 and white text 18.77:1. WCAG asks for at least 4.5:1 for normal text.