#020A1F#020A1F

#020A1F is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.0% C 0.048 H 261.0°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#020A1F
RGBrgb(2, 10, 31)
HSLhsl(223, 88%, 6%)
HSVhsv(223, 94%, 12%)
CMYKcmyk(93.5%, 67.7%, 0%, 87.8%)
CIE-LABlab(2.97, 2.79, -13.46)
CIE-LCHlch(2.97, 13.75, 281.72°)
OKLaboklab(15.04% -0.0075 -0.0473)
OKLCHoklch(15.04% 0.048 261)
XYZxyz(0.3808, 0.3289, 1.3395)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A1F #1F1702
analogous
#02191F #020A1F #09021F
triadic
#020A1F #1F020A #0A1F02
tetradic
#020A1F #1F0219 #1F1702 #021F09
square
#020A1F #1F0219 #1F1702 #021F09
split-complementary
#020A1F #1F0902 #191F02
monochromatic
#02091D #02091D #020A1F #061D58 #092F92

Accessibility & contrast

On white

19.70
#020A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#020A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020A1F
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A1F#FFFFFF#000000##FFFFFF
##020A1F1.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020C20
Deuteranopia (green-blind)
#00091F
Tritanopia (blue-blind)
#000F12
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #020a1f;
/* rgb */ color: rgb(2, 10, 31);
/* oklch */ color: oklch(15.0% 0.048 261.0);
Tailwind
colors: {
  custom: {
    50: '#474b5a',
    500: '#020a1f',
    950: '#000000',
  },
}
SCSS
$custom: #020a1f;
$custom-light: #474b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#020a1f",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 31
  },
  "hsl": {
    "h": 223.448,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.15039,
    "c": 0.04785,
    "h": 261
  },
  "luminance": 0.00329
}

Semantic roles & 50–950 ramp

primary
#020A1F
secondary
#655018
accent
#C32AFE
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #020A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#020A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva