#01021C#01021C

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

Color values

HEX#01021C
RGBrgb(1, 2, 28)
HSLhsl(238, 93%, 6%)
HSVhsv(238, 96%, 11%)
CMYKcmyk(96.4%, 92.9%, 0%, 89%)
CIE-LABlab(1.21, 4.78, -13.71)
CIE-LCHlch(1.21, 14.52, 289.22°)
OKLaboklab(11.58% -0.0021 -0.0619)
OKLCHoklch(11.58% 0.062 268.1)
XYZxyz(0.2438, 0.1337, 1.1113)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01021C #1C1B01
analogous
#010F1C #01021C #0D011C
triadic
#01021C #1C0102 #021C01
tetradic
#01021C #1C010F #1C1B01 #011C0D
square
#01021C #1C010F #1C1B01 #011C0D
split-complementary
#01021C #1C0D01 #0F1C01
monochromatic
#01021E #01021E #01021E #030657 #050A92

Accessibility & contrast

On white

20.45
#01021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #01021C
20.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##01021C#FFFFFF#000000##FFFFFF
##01021C1.0020.451.0320.45
#FFFFFF20.451.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #01021c;
/* rgb */ color: rgb(1, 2, 28);
/* oklch */ color: oklch(11.6% 0.062 268.1);
Tailwind
colors: {
  custom: {
    50: '#464857',
    500: '#01021c',
    950: '#000000',
  },
}
SCSS
$custom: #01021c;
$custom-light: #464857;
$custom-dark: #000000;
JSON
{
  "hex": "#01021c",
  "rgb": {
    "r": 1,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 237.778,
    "s": 93.103,
    "l": 5.686
  },
  "oklch": {
    "l": 0.11575,
    "c": 0.06191,
    "h": 268.1
  },
  "luminance": 0.00134
}

Semantic roles & 50–950 ramp

primary
#01021C
secondary
#646115
accent
#F729FF
background
#F3F4F5
surface
#E5E6E9
border
#C1C2C5
text
#000003
muted
#767778

Preview Lab

Preview with #01021C

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

Preview Lab → · Contrast checker → · Palette generator →

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