#021218#021218

#021218 is a very dark, muted cyan. Relative luminance 0.005; OKLCH L 17.0% C 0.027 H 222.4°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#021218
RGBrgb(2, 18, 24)
HSLhsl(196, 85%, 5%)
HSVhsv(196, 92%, 9%)
CMYKcmyk(91.7%, 25%, 0%, 90.6%)
CIE-LABlab(4.62, -3.28, -5.50)
CIE-LCHlch(4.62, 6.40, 239.22°)
OKLaboklab(17.02% -0.0202 -0.0184)
OKLCHoklch(17.02% 0.027 222.4)
XYZxyz(0.4061, 0.5114, 0.9413)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021218 #180802
analogous
#021813 #021218 #020718
triadic
#021218 #180212 #121802
tetradic
#021218 #130218 #180802 #071802
square
#021218 #130218 #180802 #071802
split-complementary
#021218 #180207 #181302
monochromatic
#02151C #02151C #02151C #073C50 #0B6789

Accessibility & contrast

On white

19.05
#021218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#021218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021218
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021218#FFFFFF#000000##FFFFFF
##0212181.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1118
Deuteranopia (green-blind)
#0B0F18
Tritanopia (blue-blind)
#001414
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #021218;
/* rgb */ color: rgb(2, 18, 24);
/* oklch */ color: oklch(17.0% 0.027 222.4);
Tailwind
colors: {
  custom: {
    50: '#475054',
    500: '#021218',
    950: '#000000',
  },
}
SCSS
$custom: #021218;
$custom-light: #475054;
$custom-dark: #000000;
JSON
{
  "hex": "#021218",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 196.364,
    "s": 84.615,
    "l": 5.098
  },
  "oklch": {
    "l": 0.17024,
    "c": 0.02733,
    "h": 222.4
  },
  "luminance": 0.00511
}

Semantic roles & 50–950 ramp

primary
#021218
secondary
#5E2B18
accent
#652DFB
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000202
muted
#777878

Preview Lab

Preview with #021218

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#021218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva