#020122#020122

#020122 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.3% C 0.073 H 271.1°. Best body text is #FFFFFF at 20.39:1 contrast (WCAG AA passes).

Color values

HEX#020122
RGBrgb(2, 1, 34)
HSLhsl(242, 94%, 7%)
HSVhsv(242, 97%, 13%)
CMYKcmyk(94.1%, 97.1%, 0%, 86.7%)
CIE-LABlab(1.36, 7.45, -18.28)
CIE-LCHlch(1.36, 19.74, 292.16°)
OKLaboklab(12.26% 0.0014 -0.0732)
OKLCHoklch(12.26% 0.073 271.1)
XYZxyz(0.3245, 0.1501, 1.5249)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020122 #212201
analogous
#011122 #020122 #130122
triadic
#020122 #220201 #012202
tetradic
#020122 #220111 #212201 #012213
square
#020122 #220111 #212201 #012213
split-complementary
#020122 #221301 #112201
monochromatic
#02011E #02011E #020122 #05035D #090499

Accessibility & contrast

On white

20.39
#020122 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#020122 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020122
20.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020122#FFFFFF#000000##FFFFFF
##0201221.0020.391.0320.39
#FFFFFF20.391.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000623
Deuteranopia (green-blind)
#000421
Tritanopia (blue-blind)
#000910
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #020122;
/* rgb */ color: rgb(2, 1, 34);
/* oklch */ color: oklch(12.3% 0.073 271.1);
Tailwind
colors: {
  custom: {
    50: '#47475d',
    500: '#020122',
    950: '#000000',
  },
}
SCSS
$custom: #020122;
$custom-light: #47475d;
$custom-dark: #000000;
JSON
{
  "hex": "#020122",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 34
  },
  "hsl": {
    "h": 241.818,
    "s": 94.286,
    "l": 6.863
  },
  "oklch": {
    "l": 0.12257,
    "c": 0.07321,
    "h": 271.1
  },
  "luminance": 0.0015
}

Semantic roles & 50–950 ramp

primary
#020122
secondary
#676916
accent
#FF29F9
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #020122

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

Preview Lab → · Contrast checker → · Palette generator →

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