#021218 color

#021218 rgb(2, 18, 24)
Shades of black

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
RGBrgb(2, 18, 24)
RGB percentrgb(0.8%, 7.1%, 9.4%)
HSLhsl(196, 85%, 5%)
HSV / HSBhsv(196, 92%, 9%)
CMYKcmyk(92%, 25%, 0%, 91%)
CIE LABlab(4.62, -3.27, -5.5)
CIE LCHlch(4.62, 6.4, 239.22)
CIE XYZxyz(0.406, 0.511, 0.941)
Decimal135704
Short hexNone (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 #021218RatioAAAAAAA large
Sample text1.1:1FailFailFail
Sample text19.05:1PassPassPass
#021218 as text onRatioAAAAAAA large
Sample text19.05:1PassPassPass
Sample text1.1:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.