#02011C#02011C

#02011C is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.3% C 0.064 H 273.1°. Best body text is #FFFFFF at 20.52:1 contrast (WCAG AA passes).

Color values

HEX#02011C
RGBrgb(2, 1, 28)
HSLhsl(242, 93%, 6%)
HSVhsv(242, 96%, 11%)
CMYKcmyk(92.9%, 96.4%, 0%, 89%)
CIE-LABlab(1.07, 5.44, -13.91)
CIE-LCHlch(1.07, 14.94, 291.36°)
OKLaboklab(11.28% 0.0035 -0.0642)
OKLCHoklch(11.28% 0.064 273.1)
XYZxyz(0.2454, 0.1184, 1.1083)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02011C #1B1C01
analogous
#010D1C #02011C #0F011C
triadic
#02011C #1C0201 #011C02
tetradic
#02011C #1C010D #1B1C01 #011C0F
square
#02011C #1C010D #1B1C01 #011C0F
split-complementary
#02011C #1C0F01 #0D1C01
monochromatic
#02011E #02011E #02011E #060357 #0A0592

Accessibility & contrast

On white

20.52
#02011C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02011C
20.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02011C#FFFFFF#000000##FFFFFF
##02011C1.0020.521.0220.52
#FFFFFF20.521.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02011c;
/* rgb */ color: rgb(2, 1, 28);
/* oklch */ color: oklch(11.3% 0.064 273.1);
Tailwind
colors: {
  custom: {
    50: '#474757',
    500: '#02011c',
    950: '#000000',
  },
}
SCSS
$custom: #02011c;
$custom-light: #474757;
$custom-dark: #000000;
JSON
{
  "hex": "#02011c",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 28
  },
  "hsl": {
    "h": 242.222,
    "s": 93.103,
    "l": 5.686
  },
  "oklch": {
    "l": 0.1128,
    "c": 0.06426,
    "h": 273.1
  },
  "luminance": 0.00118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #02011C

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

Preview Lab → · Contrast checker → · Palette generator →

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