#08020C#08020C

#08020C is a very dark, muted violet. Relative luminance 0.001; OKLCH L 11.1% C 0.033 H 314.6°. Best body text is #FFFFFF at 20.50:1 contrast (WCAG AA passes).

Color values

HEX#08020C
RGBrgb(8, 2, 12)
HSLhsl(276, 71%, 3%)
HSVhsv(276, 83%, 5%)
CMYKcmyk(33.3%, 83.3%, 0%, 95.3%)
CIE-LABlab(1.10, 2.97, -3.27)
CIE-LCHlch(1.10, 4.42, 312.26°)
OKLaboklab(11.07% 0.0234 -0.0237)
OKLCHoklch(11.07% 0.033 314.6)
XYZxyz(0.1882, 0.1216, 0.3613)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08020C #060C02
analogous
#03020C #08020C #0C020B
triadic
#08020C #0C0802 #020C08
tetradic
#08020C #0C0302 #060C02 #020B0C
square
#08020C #0C0302 #060C02 #020B0C
split-complementary
#08020C #0B0C02 #020C03
monochromatic
#11041A #11041A #11041A #2B0B40 #4E1375

Accessibility & contrast

On white

20.50
#08020C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08020C
20.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08020C#FFFFFF#000000##FFFFFF
##08020C1.0020.501.0220.50
#FFFFFF20.501.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08020c;
/* rgb */ color: rgb(8, 2, 12);
/* oklch */ color: oklch(11.1% 0.033 314.6);
Tailwind
colors: {
  custom: {
    50: '#4a484c',
    500: '#08020c',
    950: '#000000',
  },
}
SCSS
$custom: #08020c;
$custom-light: #4a484c;
$custom-dark: #000000;
JSON
{
  "hex": "#08020c",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 12
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 2.745
  },
  "oklch": {
    "l": 0.11072,
    "c": 0.03331,
    "h": 314.6
  },
  "luminance": 0.00122
}

Semantic roles & 50–950 ramp

primary
#08020C
secondary
#304F1A
accent
#EE3A82
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08020C

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

Preview Lab → · Contrast checker → · Palette generator →

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