Midnight Black color: hex code #0B0C10
Midnight Black has the hex code #0B0C10. It is a very dark, grayish blue.
In the RGB color model it is made of 4.3% red, 4.7% green and 6.3% blue (11, 12, 16).
Its hue angle is 228°, with 19% saturation and 5% lightness. For print, the CMYK equivalent is 31% cyan, 25% magenta, 0% yellow and 94% black.
White text is the more readable choice on this background (contrast 19.55:1).
Midnight Black (#0B0C10) color codes
| HEX | #0B0C10 | |
|---|---|---|
| RGB | rgb(11, 12, 16) | |
| RGB percent | rgb(4.3%, 4.7%, 6.3%) | |
| HSL | hsl(228, 19%, 5%) | |
| HSV / HSB | hsv(228, 31%, 6%) | |
| CMYK | cmyk(31%, 25%, 0%, 94%) | |
| CIE LAB | lab(3.36, 0.41, -1.98) | |
| CIE LCH | lch(3.36, 2.02, 281.58) | |
| CIE XYZ | xyz(0.363, 0.371, 0.543) | |
| Decimal | 723984 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Midnight Black, 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 #0B0C10 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.07:1 | Fail | Fail | Fail |
| Sample text | 19.55:1 | Pass | Pass | Pass |
| #0B0C10 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.55:1 | Pass | Pass | Pass |
| Sample text | 1.07: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 #0B0C10 looks to people with the most common types of color vision deficiency.
#0b0c10Protanopia
no red cones#0b0c10Deuteranopia
no green cones#0a0d0dTritanopia
no blue cones#0c0c0cAchromatopsia
no color vision
CSS examples
.background { background-color: #0b0c10; }
.text { color: #0b0c10; }
.border { border: 2px solid #0b0c10; }
.transparent { background-color: rgb(11 12 16 / 50%); }
.gradient { background: linear-gradient(to right, #0b0c10, #0c0b10); }
Similar colors
#0f1012Ruined Smores#03050aEight Ball#030205Raven’s Coat#0c0c0cBlack Wash#0b0b0bRaven#0f0f0fOff Black#0f0d0dBlack Sheep#151517Dark Void
See #0B0C10 on its hex code page
Questions
- What color is #0B0C10?
- #0B0C10 is a very dark, grayish blue known as Midnight Black. It belongs to the black family of colors.
- What is the RGB value of Midnight Black?
- The RGB value is 11, 12, 16: 11 red, 12 green and 16 blue on a 0 to 255 scale.
- What is the complementary color of Midnight Black?
- The complementary color is #100F0B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0B0C10?
- White text. Black text has a contrast ratio of 1.07:1 and white text 19.55:1. WCAG asks for at least 4.5:1 for normal text.