#02011F#02011F

#02011F is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.8% C 0.069 H 272.0°. Best body text is #FFFFFF at 20.45:1 contrast (WCAG AA passes).

Color values

HEX#02011F
RGBrgb(2, 1, 31)
HSLhsl(242, 94%, 6%)
HSVhsv(242, 97%, 12%)
CMYKcmyk(93.5%, 96.8%, 0%, 87.8%)
CIE-LABlab(1.21, 6.40, -16.13)
CIE-LCHlch(1.21, 17.35, 291.64°)
OKLaboklab(11.77% 0.0024 -0.0687)
OKLCHoklch(11.77% 0.069 272)
XYZxyz(0.2831, 0.1335, 1.3069)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02011F #1E1F01
analogous
#010F1F #02011F #11011F
triadic
#02011F #1F0201 #011F02
tetradic
#02011F #1F010F #1E1F01 #011F11
square
#02011F #1F010F #1E1F01 #011F11
split-complementary
#02011F #1F1101 #0F1F01
monochromatic
#02011E #02011E #02011F #06035A #0A0596

Accessibility & contrast

On white

20.45
#02011F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#02011F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02011F
20.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02011F#FFFFFF#000000##FFFFFF
##02011F1.0020.451.0320.45
#FFFFFF20.451.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000520
Deuteranopia (green-blind)
#00031E
Tritanopia (blue-blind)
#00070E
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #02011f;
/* rgb */ color: rgb(2, 1, 31);
/* oklch */ color: oklch(11.8% 0.069 272.0);
Tailwind
colors: {
  custom: {
    50: '#47475a',
    500: '#02011f',
    950: '#000000',
  },
}
SCSS
$custom: #02011f;
$custom-light: #47475a;
$custom-dark: #000000;
JSON
{
  "hex": "#02011f",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 31
  },
  "hsl": {
    "h": 242,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.11766,
    "c": 0.06879,
    "h": 272
  },
  "luminance": 0.00134
}

Semantic roles & 50–950 ramp

primary
#02011F
secondary
#646715
accent
#FF29F8
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #02011F

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

Preview Lab → · Contrast checker → · Palette generator →

#02011F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva