#020218#020218

#020218 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.2% C 0.054 H 273.3°. Best body text is #FFFFFF at 20.50:1 contrast (WCAG AA passes).

Color values

HEX#020218
RGBrgb(2, 2, 24)
HSLhsl(240, 85%, 5%)
HSVhsv(240, 92%, 9%)
CMYKcmyk(91.7%, 91.7%, 0%, 90.6%)
CIE-LABlab(1.10, 3.91, -10.63)
CIE-LCHlch(1.10, 11.33, 290.19°)
OKLaboklab(11.19% 0.0031 -0.0541)
OKLCHoklch(11.19% 0.054 273.3)
XYZxyz(0.2116, 0.1222, 0.8764)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020218 #181802
analogous
#020D18 #020218 #0D0218
triadic
#020218 #180202 #021802
tetradic
#020218 #18020D #181802 #02180D
square
#020218 #18020D #181802 #02180D
split-complementary
#020218 #180D02 #0D1802
monochromatic
#02021C #02021C #02021C #070750 #0B0B89

Accessibility & contrast

On white

20.50
#020218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#020218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020218
20.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020218#FFFFFF#000000##FFFFFF
##0202181.0020.501.0220.50
#FFFFFF20.501.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000519
Deuteranopia (green-blind)
#000318
Tritanopia (blue-blind)
#00060B
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #020218;
/* rgb */ color: rgb(2, 2, 24);
/* oklch */ color: oklch(11.2% 0.054 273.3);
Tailwind
colors: {
  custom: {
    50: '#474854',
    500: '#020218',
    950: '#000000',
  },
}
SCSS
$custom: #020218;
$custom-light: #474854;
$custom-dark: #000000;
JSON
{
  "hex": "#020218",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 240,
    "s": 84.615,
    "l": 5.098
  },
  "oklch": {
    "l": 0.11193,
    "c": 0.05418,
    "h": 273.3
  },
  "luminance": 0.00122
}

Semantic roles & 50–950 ramp

primary
#020218
secondary
#5E5E18
accent
#FB2DFB
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #020218

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

Preview Lab → · Contrast checker → · Palette generator →

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