#020818 color
The hex color #020818 is a very dark, vivid blue.
In the RGB color model it is made of 0.8% red, 3.1% green and 9.4% blue (2, 8, 24).
Its hue angle is 224°, with 85% saturation and 5% lightness. For print, the CMYK equivalent is 92% cyan, 67% magenta, 0% yellow and 91% black.
The closest named color is Midnight Edition (#0C121B), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.99:1).
#020818 color codes
| HEX | #020818 | |
|---|---|---|
| RGB | rgb(2, 8, 24) | |
| RGB percent | rgb(0.8%, 3.1%, 9.4%) | |
| HSL | hsl(224, 85%, 5%) | |
| HSV / HSB | hsv(224, 92%, 9%) | |
| CMYK | cmyk(92%, 67%, 0%, 91%) | |
| CIE LAB | lab(2.28, 1.5, -8.91) | |
| CIE LCH | lch(2.28, 9.04, 279.57) | |
| CIE XYZ | xyz(0.277, 0.252, 0.898) | |
| Decimal | 133144 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #020818, 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 #020818 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.05:1 | Fail | Fail | Fail |
| Sample text | 19.99:1 | Pass | Pass | Pass |
| #020818 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.99:1 | Pass | Pass | Pass |
| Sample text | 1.05: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 #020818 looks to people with the most common types of color vision deficiency.
#030a19Protanopia
no red cones#010718Deuteranopia
no green cones#000c0eTritanopia
no blue cones#080808Achromatopsia
no color vision
CSS examples
.background { background-color: #020818; }
.text { color: #020818; }
.border { border: 2px solid #020818; }
.transparent { background-color: rgb(2 8 24 / 50%); }
.gradient { background: linear-gradient(to right, #020818, #070218); }
Similar colors
#0c121bMidnight Edition#080813Narwhal Gray#060b14Dark Rift#060313Obsidian Shard#0b0c14Midnight Oil#16161dEigengrau#111122Corbeau#16141cBack in Black
Closest common color name: Rich Black.
Questions
- What color is #020818?
- #020818 is a very dark, vivid blue, closest to the named color Midnight Edition. It belongs to the black family of colors.
- What is the RGB value of #020818?
- The RGB value is 2, 8, 24: 2 red, 8 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #020818?
- The complementary color is #181202, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #020818?
- White text. Black text has a contrast ratio of 1.05:1 and white text 19.99:1. WCAG asks for at least 4.5:1 for normal text.