#020D1F#020D1F

#020D1F is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.9% C 0.043 H 255.5°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#020D1F
RGBrgb(2, 13, 31)
HSLhsl(217, 88%, 6%)
HSVhsv(217, 94%, 12%)
CMYKcmyk(93.5%, 58.1%, 0%, 87.8%)
CIE-LABlab(3.61, 1.49, -12.50)
CIE-LCHlch(3.61, 12.58, 276.80°)
OKLaboklab(15.93% -0.0108 -0.0417)
OKLCHoklch(15.93% 0.043 255.5)
XYZxyz(0.4162, 0.3996, 1.3513)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020D1F #1F1402
analogous
#021C1F #020D1F #06021F
triadic
#020D1F #1F020D #0D1F02
tetradic
#020D1F #1F021C #1F1402 #021F06
square
#020D1F #1F021C #1F1402 #021F06
split-complementary
#020D1F #1F0602 #1C1F02
monochromatic
#020C1D #020C1D #020D1F #062558 #093D92

Accessibility & contrast

On white

19.44
#020D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#020D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020D1F
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020D1F#FFFFFF#000000##FFFFFF
##020D1F1.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050F20
Deuteranopia (green-blind)
#020C1F
Tritanopia (blue-blind)
#001114
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #020d1f;
/* rgb */ color: rgb(2, 13, 31);
/* oklch */ color: oklch(15.9% 0.043 255.5);
Tailwind
colors: {
  custom: {
    50: '#474d5a',
    500: '#020d1f',
    950: '#000000',
  },
}
SCSS
$custom: #020d1f;
$custom-light: #474d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#020d1f",
  "rgb": {
    "r": 2,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 217.241,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.15931,
    "c": 0.04309,
    "h": 255.5
  },
  "luminance": 0.004
}

Semantic roles & 50–950 ramp

primary
#020D1F
secondary
#654818
accent
#AE2AFE
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #020D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#020D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva