Midnight Edition color: hex code #0C121B
Midnight Edition has the hex code #0C121B. It is a very dark, desaturated azure.
In the RGB color model it is made of 4.7% red, 7.1% green and 10.6% blue (12, 18, 27).
Its hue angle is 216°, with 38% saturation and 8% lightness. For print, the CMYK equivalent is 56% cyan, 33% magenta, 0% yellow and 89% black.
White text is the more readable choice on this background (contrast 18.78:1).
Midnight Edition (#0C121B) color codes
| HEX | #0C121B | |
|---|---|---|
| RGB | rgb(12, 18, 27) | |
| RGB percent | rgb(4.7%, 7.1%, 10.6%) | |
| HSL | hsl(216, 38%, 8%) | |
| HSV / HSB | hsv(216, 56%, 11%) | |
| CMYK | cmyk(56%, 33%, 0%, 89%) | |
| CIE LAB | lab(5.33, 0.21, -6.73) | |
| CIE LCH | lch(5.33, 6.74, 271.75) | |
| CIE XYZ | xyz(0.566, 0.59, 1.121) | |
| Decimal | 791067 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Midnight Edition, 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 #0C121B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.12:1 | Fail | Fail | Fail |
| Sample text | 18.78:1 | Pass | Pass | Pass |
| #0C121B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.78: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 #0C121B looks to people with the most common types of color vision deficiency.
#0f121bProtanopia
no red cones#0d111bDeuteranopia
no green cones#071415Tritanopia
no blue cones#121212Achromatopsia
no color vision
CSS examples
.background { background-color: #0c121b; }
.text { color: #0c121b; }
.border { border: 2px solid #0c121b; }
.transparent { background-color: rgb(12 18 27 / 50%); }
.gradient { background: linear-gradient(to right, #0c121b, #0d0c1b); }
Similar colors
#060b14Dark Rift#0b0c14Midnight Oil#010b13Rich Black#010b13Black Knight#080813Narwhal Gray#16161dEigengrau#0b0c10Midnight Black#17171aPiano Black
See #0C121B on its hex code page
Questions
- What color is #0C121B?
- #0C121B is a very dark, desaturated azure known as Midnight Edition. It belongs to the black family of colors.
- What is the RGB value of Midnight Edition?
- The RGB value is 12, 18, 27: 12 red, 18 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of Midnight Edition?
- The complementary color is #1B150C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C121B?
- White text. Black text has a contrast ratio of 1.12:1 and white text 18.78:1. WCAG asks for at least 4.5:1 for normal text.