#020017#020017

#020017 is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 9.9% C 0.061 H 277.0°. Best body text is #FFFFFF at 20.69:1 contrast (WCAG AA passes).

Color values

HEX#020017
RGBrgb(2, 0, 23)
HSLhsl(245, 100%, 5%)
HSVhsv(245, 100%, 9%)
CMYKcmyk(91.3%, 100%, 0%, 91%)
CIE-LABlab(0.68, 4.44, -10.50)
CIE-LCHlch(0.68, 11.40, 292.95°)
OKLaboklab(9.85% 0.0074 -0.0605)
OKLCHoklch(9.85% 0.061 277)
XYZxyz(0.1796, 0.0748, 0.8154)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020017 #151700
analogous
#000A17 #020017 #0E0017
triadic
#020017 #170200 #001702
tetradic
#020017 #17000A #151700 #00170E
square
#020017 #17000A #151700 #00170E
split-complementary
#020017 #170E00 #0A1700
monochromatic
#03001F #03001F #03001F #070054 #0D0091

Accessibility & contrast

On white

20.69
#020017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.01
#020017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020017
20.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020017#FFFFFF#000000##FFFFFF
##0200171.0020.691.0120.69
#FFFFFF20.691.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020017;
/* rgb */ color: rgb(2, 0, 23);
/* oklch */ color: oklch(9.9% 0.061 277.0);
Tailwind
colors: {
  custom: {
    50: '#474753',
    500: '#020017',
    950: '#000000',
  },
}
SCSS
$custom: #020017;
$custom-light: #474753;
$custom-dark: #000000;
JSON
{
  "hex": "#020017",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 23
  },
  "hsl": {
    "h": 245.217,
    "s": 100,
    "l": 4.51
  },
  "oklch": {
    "l": 0.09852,
    "c": 0.06095,
    "h": 277
  },
  "luminance": 0.00075
}

Semantic roles & 50–950 ramp

primary
#020017
secondary
#5B6211
accent
#FF29EC
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000002
muted
#777778

Preview Lab

Preview with #020017

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

Preview Lab → · Contrast checker → · Palette generator →

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