#02011A#02011A

#02011A is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.0% C 0.061 H 274.0°. Best body text is #FFFFFF at 20.55:1 contrast (WCAG AA passes).

Color values

HEX#02011A
RGBrgb(2, 1, 26)
HSLhsl(242, 93%, 5%)
HSVhsv(242, 96%, 10%)
CMYKcmyk(92.3%, 96.2%, 0%, 89.8%)
CIE-LABlab(0.99, 4.85, -12.41)
CIE-LCHlch(0.99, 13.32, 291.37°)
OKLaboklab(10.96% 0.0043 -0.061)
OKLCHoklch(10.96% 0.061 274)
XYZxyz(0.2223, 0.1092, 0.9864)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02011A #191A01
analogous
#010C1A #02011A #0E011A
triadic
#02011A #1A0201 #011A02
tetradic
#02011A #1A010C #191A01 #011A0E
square
#02011A #1A010C #191A01 #011A0E
split-complementary
#02011A #1A0E01 #0C1A01
monochromatic
#02011D #02011D #02011D #070355 #0B0690

Accessibility & contrast

On white

20.55
#02011A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02011A
20.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02011A#FFFFFF#000000##FFFFFF
##02011A1.0020.551.0220.55
#FFFFFF20.551.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00041B
Deuteranopia (green-blind)
#000319
Tritanopia (blue-blind)
#00060B
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #02011a;
/* rgb */ color: rgb(2, 1, 26);
/* oklch */ color: oklch(11.0% 0.061 274.0);
Tailwind
colors: {
  custom: {
    50: '#474756',
    500: '#02011a',
    950: '#000000',
  },
}
SCSS
$custom: #02011a;
$custom-light: #474756;
$custom-dark: #000000;
JSON
{
  "hex": "#02011a",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 26
  },
  "hsl": {
    "h": 242.4,
    "s": 92.593,
    "l": 5.294
  },
  "oklch": {
    "l": 0.1096,
    "c": 0.06117,
    "h": 274
  },
  "luminance": 0.00109
}

Semantic roles & 50–950 ramp

primary
#02011A
secondary
#5F6215
accent
#FF29F6
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000003
muted
#777778

Preview Lab

Preview with #02011A

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

Preview Lab → · Contrast checker → · Palette generator →

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