#08020D#08020D

#08020D is a very dark, muted violet. Relative luminance 0.001; OKLCH L 11.2% C 0.035 H 312.2°. Best body text is #FFFFFF at 20.49:1 contrast (WCAG AA passes).

Color values

HEX#08020D
RGBrgb(8, 2, 13)
HSLhsl(273, 73%, 3%)
HSVhsv(273, 85%, 5%)
CMYKcmyk(38.5%, 84.6%, 0%, 94.9%)
CIE-LABlab(1.12, 3.14, -3.71)
CIE-LCHlch(1.12, 4.86, 310.22°)
OKLaboklab(11.16% 0.0234 -0.0259)
OKLCHoklch(11.16% 0.035 312.2)
XYZxyz(0.1945, 0.1241, 0.3944)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08020D #070D02
analogous
#02020D #08020D #0D020C
triadic
#08020D #0D0802 #020D08
tetradic
#08020D #0D0202 #070D02 #020C0D
square
#08020D #0D0202 #070D02 #020C0D
split-complementary
#08020D #0C0D02 #020D02
monochromatic
#10041B #10041B #10041B #290A42 #491277

Accessibility & contrast

On white

20.49
#08020D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#08020D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08020D
20.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08020D#FFFFFF#000000##FFFFFF
##08020D1.0020.491.0220.49
#FFFFFF20.491.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01040D
Deuteranopia (green-blind)
#02040D
Tritanopia (blue-blind)
#080305
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #08020d;
/* rgb */ color: rgb(8, 2, 13);
/* oklch */ color: oklch(11.2% 0.035 312.2);
Tailwind
colors: {
  custom: {
    50: '#4a484d',
    500: '#08020d',
    950: '#000000',
  },
}
SCSS
$custom: #08020d;
$custom-light: #4a484d;
$custom-dark: #000000;
JSON
{
  "hex": "#08020d",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 13
  },
  "hsl": {
    "h": 272.727,
    "s": 73.333,
    "l": 2.941
  },
  "oklch": {
    "l": 0.11162,
    "c": 0.03492,
    "h": 312.2
  },
  "luminance": 0.00124
}

Semantic roles & 50–950 ramp

primary
#08020D
secondary
#33511A
accent
#F0388C
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08020D

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

Preview Lab → · Contrast checker → · Palette generator →

#08020D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva