#020012#020012

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

Color values

HEX#020012
RGBrgb(2, 0, 18)
HSLhsl(247, 100%, 4%)
HSVhsv(247, 100%, 7%)
CMYKcmyk(88.9%, 100%, 0%, 92.9%)
CIE-LABlab(0.51, 3.29, -7.36)
CIE-LCHlch(0.51, 8.06, 294.12°)
OKLaboklab(8.97% 0.0105 -0.0528)
OKLCHoklch(8.97% 0.054 281.3)
XYZxyz(0.1342, 0.0566, 0.5760)
Luminance0.0006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020012 #101200
analogous
#000712 #020012 #0B0012
triadic
#020012 #120200 #001202
tetradic
#020012 #120007 #101200 #00120B
square
#020012 #120007 #101200 #00120B
split-complementary
#020012 #120B00 #071200
monochromatic
#03001F #03001F #03001F #09004F #10008C

Accessibility & contrast

On white

20.76
#020012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020012
20.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020012#FFFFFF#000000##FFFFFF
##0200121.0020.761.0120.76
#FFFFFF20.761.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000213
Deuteranopia (green-blind)
#000212
Tritanopia (blue-blind)
#000306
Achromatopsia (no color)
#020202

Design tokens & code

CSS
--color: #020012;
/* rgb */ color: rgb(2, 0, 18);
/* oklch */ color: oklch(9.0% 0.054 281.3);
Tailwind
colors: {
  custom: {
    50: '#47474f',
    500: '#020012',
    950: '#000000',
  },
}
SCSS
$custom: #020012;
$custom-light: #47474f;
$custom-dark: #000000;
JSON
{
  "hex": "#020012",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 18
  },
  "hsl": {
    "h": 246.667,
    "s": 100,
    "l": 3.529
  },
  "oklch": {
    "l": 0.08972,
    "c": 0.05379,
    "h": 281.3
  },
  "luminance": 0.00057
}

Semantic roles & 50–950 ramp

primary
#020012
secondary
#555D10
accent
#FF29E7
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000002
muted
#777778

Preview Lab

Preview with #020012

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

Preview Lab → · Contrast checker → · Palette generator →

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