#01021F#01021F

#01021F is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 12.0% C 0.067 H 267.7°. Best body text is #FFFFFF at 20.39:1 contrast (WCAG AA passes).

Color values

HEX#01021F
RGBrgb(1, 2, 31)
HSLhsl(238, 94%, 6%)
HSVhsv(238, 97%, 12%)
CMYKcmyk(96.8%, 93.5%, 0%, 87.8%)
CIE-LABlab(1.34, 5.74, -15.92)
CIE-LCHlch(1.34, 16.93, 289.82°)
OKLaboklab(12.04% -0.0027 -0.0666)
OKLCHoklch(12.04% 0.067 267.7)
XYZxyz(0.2815, 0.1488, 1.3099)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01021F #1F1E01
analogous
#01111F #01021F #0F011F
triadic
#01021F #1F0102 #021F01
tetradic
#01021F #1F0111 #1F1E01 #011F0F
square
#01021F #1F0111 #1F1E01 #011F0F
split-complementary
#01021F #1F0F01 #111F01
monochromatic
#01021E #01021E #01021F #03065A #050A96

Accessibility & contrast

On white

20.39
#01021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#01021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##01021F#FFFFFF#000000##FFFFFF
##01021F1.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)
#000620
Deuteranopia (green-blind)
#00041E
Tritanopia (blue-blind)
#00080F
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #01021f;
/* rgb */ color: rgb(1, 2, 31);
/* oklch */ color: oklch(12.0% 0.067 267.7);
Tailwind
colors: {
  custom: {
    50: '#46485a',
    500: '#01021f',
    950: '#000000',
  },
}
SCSS
$custom: #01021f;
$custom-light: #46485a;
$custom-dark: #000000;
JSON
{
  "hex": "#01021f",
  "rgb": {
    "r": 1,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 238,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.12038,
    "c": 0.0667,
    "h": 267.7
  },
  "luminance": 0.00149
}

Semantic roles & 50–950 ramp

primary
#01021F
secondary
#676415
accent
#F829FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #01021F

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

Preview Lab → · Contrast checker → · Palette generator →

#01021F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva