#08021F#08021F

#08021F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.2% C 0.063 H 287.6°. Best body text is #FFFFFF at 20.22:1 contrast (WCAG AA passes).

Color values

HEX#08021F
RGBrgb(8, 2, 31)
HSLhsl(252, 88%, 6%)
HSVhsv(252, 94%, 12%)
CMYKcmyk(74.2%, 93.5%, 0%, 87.8%)
CIE-LABlab(1.75, 7.57, -15.27)
CIE-LCHlch(1.75, 17.04, 296.37°)
OKLaboklab(13.21% 0.0192 -0.0602)
OKLCHoklch(13.21% 0.063 287.6)
XYZxyz(0.3691, 0.1939, 1.3140)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08021F #191F02
analogous
#020B1F #08021F #17021F
triadic
#08021F #1F0802 #021F08
tetradic
#08021F #1F020B #191F02 #021F17
square
#08021F #1F020B #191F02 #021F17
split-complementary
#08021F #1F1702 #0B1F02
monochromatic
#07021D #07021D #08021F #170658 #260992

Accessibility & contrast

On white

20.22
#08021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#08021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08021F
20.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08021F#FFFFFF#000000##FFFFFF
##08021F1.0020.221.0420.22
#FFFFFF20.221.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000720
Deuteranopia (green-blind)
#00061E
Tritanopia (blue-blind)
#02080F
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08021f;
/* rgb */ color: rgb(8, 2, 31);
/* oklch */ color: oklch(13.2% 0.063 287.6);
Tailwind
colors: {
  custom: {
    50: '#4a475a',
    500: '#08021f',
    950: '#000000',
  },
}
SCSS
$custom: #08021f;
$custom-light: #4a475a;
$custom-dark: #000000;
JSON
{
  "hex": "#08021f",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 252.414,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.13205,
    "c": 0.06323,
    "h": 287.6
  },
  "luminance": 0.00194
}

Semantic roles & 50–950 ramp

primary
#08021F
secondary
#556518
accent
#FE2AD2
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #08021F

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

Preview Lab → · Contrast checker → · Palette generator →

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