#021218 color
The hex color #021218 is a very dark, vivid azure.
In the RGB color model it is made of 0.8% red, 7.1% green and 9.4% blue (2, 18, 24).
Its hue angle is 196°, with 85% saturation and 5% lightness. For print, the CMYK equivalent is 92% cyan, 25% magenta, 0% yellow and 91% black.
The closest named color is Black Stallion (#0E191C), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.05:1).
#021218 color codes
| HEX | #021218 | |
|---|---|---|
| RGB | rgb(2, 18, 24) | |
| RGB percent | rgb(0.8%, 7.1%, 9.4%) | |
| HSL | hsl(196, 85%, 5%) | |
| HSV / HSB | hsv(196, 92%, 9%) | |
| CMYK | cmyk(92%, 25%, 0%, 91%) | |
| CIE LAB | lab(4.62, -3.27, -5.5) | |
| CIE LCH | lch(4.62, 6.4, 239.22) | |
| CIE XYZ | xyz(0.406, 0.511, 0.941) | |
| Decimal | 135704 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #021218, 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 #021218 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.1:1 | Fail | Fail | Fail |
| Sample text | 19.05:1 | Pass | Pass | Pass |
| #021218 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.05:1 | Pass | Pass | Pass |
| Sample text | 1.1: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 #021218 looks to people with the most common types of color vision deficiency.
#0f1118Protanopia
no red cones#0b0f18Deuteranopia
no green cones#001414Tritanopia
no blue cones#101010Achromatopsia
no color vision
CSS examples
.background { background-color: #021218; }
.text { color: #021218; }
.border { border: 2px solid #021218; }
.transparent { background-color: rgb(2 18 24 / 50%); }
.gradient { background: linear-gradient(to right, #021218, #020718); }
Similar colors
#0e191cBlack Stallion#010b13Rich Black#010b13Black Knight#0c121bMidnight Edition#060b14Dark Rift#0f1012Ruined Smores#03050aEight Ball#0b0c10Midnight Black
Questions
- What color is #021218?
- #021218 is a very dark, vivid azure, closest to the named color Black Stallion. It belongs to the black family of colors.
- What is the RGB value of #021218?
- The RGB value is 2, 18, 24: 2 red, 18 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #021218?
- The complementary color is #180802, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #021218?
- White text. Black text has a contrast ratio of 1.1:1 and white text 19.05:1. WCAG asks for at least 4.5:1 for normal text.