#020021#020021

#020021 is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.6% C 0.075 H 271.9°. Best body text is #FFFFFF at 20.50:1 contrast (WCAG AA passes).

Color values

HEX#020021
RGBrgb(2, 0, 33)
HSLhsl(244, 100%, 6%)
HSVhsv(244, 100%, 13%)
CMYKcmyk(93.9%, 100%, 0%, 87.1%)
CIE-LABlab(1.11, 7.49, -17.87)
CIE-LCHlch(1.11, 19.38, 292.74°)
OKLaboklab(11.63% 0.0025 -0.0749)
OKLCHoklch(11.63% 0.075 271.9)
XYZxyz(0.2995, 0.1227, 1.4464)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020021 #1F2100
analogous
#000F21 #020021 #130021
triadic
#020021 #210200 #002102
tetradic
#020021 #21000F #1F2100 #002113
square
#020021 #21000F #1F2100 #002113
split-complementary
#020021 #211300 #0F2100
monochromatic
#02001F #02001F #020021 #06005E #09009B

Accessibility & contrast

On white

20.50
#020021 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#020021 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020021
20.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020021#FFFFFF#000000##FFFFFF
##0200211.0020.501.0220.50
#FFFFFF20.501.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000522
Deuteranopia (green-blind)
#000320
Tritanopia (blue-blind)
#00070F
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #020021;
/* rgb */ color: rgb(2, 0, 33);
/* oklch */ color: oklch(11.6% 0.075 271.9);
Tailwind
colors: {
  custom: {
    50: '#47475c',
    500: '#020021',
    950: '#000000',
  },
}
SCSS
$custom: #020021;
$custom-light: #47475c;
$custom-dark: #000000;
JSON
{
  "hex": "#020021",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 33
  },
  "hsl": {
    "h": 243.636,
    "s": 100,
    "l": 6.471
  },
  "oklch": {
    "l": 0.11626,
    "c": 0.07495,
    "h": 271.9
  },
  "luminance": 0.00123
}

Semantic roles & 50–950 ramp

primary
#020021
secondary
#656A13
accent
#FF29F2
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #020021

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

Preview Lab → · Contrast checker → · Palette generator →

#020021 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva