#020018#020018

#020018 is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 10.0% C 0.062 H 276.3°. Best body text is #FFFFFF at 20.67:1 contrast (WCAG AA passes).

Color values

HEX#020018
RGBrgb(2, 0, 24)
HSLhsl(245, 100%, 5%)
HSVhsv(245, 100%, 9%)
CMYKcmyk(91.7%, 100%, 0%, 90.6%)
CIE-LABlab(0.71, 4.71, -11.21)
CIE-LCHlch(0.71, 12.16, 292.80°)
OKLaboklab(10.03% 0.0069 -0.062)
OKLCHoklch(10.03% 0.062 276.3)
XYZxyz(0.1899, 0.0788, 0.8692)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020018 #161800
analogous
#000A18 #020018 #0E0018
triadic
#020018 #180200 #001802
tetradic
#020018 #18000A #161800 #00180E
square
#020018 #18000A #161800 #00180E
split-complementary
#020018 #180E00 #0A1800
monochromatic
#03001F #03001F #03001F #070055 #0C0092

Accessibility & contrast

On white

20.67
#020018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020018
20.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020018#FFFFFF#000000##FFFFFF
##0200181.0020.671.0220.67
#FFFFFF20.671.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000319
Deuteranopia (green-blind)
#000217
Tritanopia (blue-blind)
#000409
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #020018;
/* rgb */ color: rgb(2, 0, 24);
/* oklch */ color: oklch(10.0% 0.062 276.3);
Tailwind
colors: {
  custom: {
    50: '#474754',
    500: '#020018',
    950: '#000000',
  },
}
SCSS
$custom: #020018;
$custom-light: #474754;
$custom-dark: #000000;
JSON
{
  "hex": "#020018",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 24
  },
  "hsl": {
    "h": 245,
    "s": 100,
    "l": 4.706
  },
  "oklch": {
    "l": 0.10029,
    "c": 0.06238,
    "h": 276.3
  },
  "luminance": 0.00079
}

Semantic roles & 50–950 ramp

primary
#020018
secondary
#5C6211
accent
#FF29ED
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000002
muted
#777778

Preview Lab

Preview with #020018

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

Preview Lab → · Contrast checker → · Palette generator →

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