#02011B#02011B

#02011B is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.1% C 0.063 H 273.5°. Best body text is #FFFFFF at 20.53:1 contrast (WCAG AA passes).

Color values

HEX#02011B
RGBrgb(2, 1, 27)
HSLhsl(242, 93%, 5%)
HSVhsv(242, 96%, 11%)
CMYKcmyk(92.6%, 96.3%, 0%, 89.4%)
CIE-LABlab(1.03, 5.15, -13.16)
CIE-LCHlch(1.03, 14.13, 291.35°)
OKLaboklab(11.12% 0.0039 -0.0626)
OKLCHoklch(11.12% 0.063 273.5)
XYZxyz(0.2337, 0.1137, 1.0463)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02011B #1A1B01
analogous
#010D1B #02011B #0F011B
triadic
#02011B #1B0201 #011B02
tetradic
#02011B #1B010D #1A1B01 #011B0F
square
#02011B #1B010D #1A1B01 #011B0F
split-complementary
#02011B #1B0F01 #0D1B01
monochromatic
#02011E #02011E #02011E #060356 #0B0591

Accessibility & contrast

On white

20.53
#02011B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#02011B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02011B
20.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02011B#FFFFFF#000000##FFFFFF
##02011B1.0020.531.0220.53
#FFFFFF20.531.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00051C
Deuteranopia (green-blind)
#00031A
Tritanopia (blue-blind)
#00060C
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #02011b;
/* rgb */ color: rgb(2, 1, 27);
/* oklch */ color: oklch(11.1% 0.063 273.5);
Tailwind
colors: {
  custom: {
    50: '#474757',
    500: '#02011b',
    950: '#000000',
  },
}
SCSS
$custom: #02011b;
$custom-light: #474757;
$custom-dark: #000000;
JSON
{
  "hex": "#02011b",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 27
  },
  "hsl": {
    "h": 242.308,
    "s": 92.857,
    "l": 5.49
  },
  "oklch": {
    "l": 0.1112,
    "c": 0.06272,
    "h": 273.5
  },
  "luminance": 0.00114
}

Semantic roles & 50–950 ramp

primary
#02011B
secondary
#606315
accent
#FF29F7
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000003
muted
#777778

Preview Lab

Preview with #02011B

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

Preview Lab → · Contrast checker → · Palette generator →

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