#08021A#08021A

#08021A is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.6% C 0.056 H 292.2°. Best body text is #FFFFFF at 20.31:1 contrast (WCAG AA passes).

Color values

HEX#08021A
RGBrgb(8, 2, 26)
HSLhsl(255, 86%, 5%)
HSVhsv(255, 92%, 10%)
CMYKcmyk(69.2%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.53, 6.02, -11.57)
CIE-LCHlch(1.53, 13.04, 297.50°)
OKLaboklab(12.57% 0.0211 -0.0515)
OKLCHoklch(12.57% 0.056 292.2)
XYZxyz(0.3082, 0.1696, 0.9936)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08021A #141A02
analogous
#02081A #08021A #14021A
triadic
#08021A #1A0802 #021A08
tetradic
#08021A #1A0208 #141A02 #021A14
square
#08021A #1A0208 #141A02 #021A14
split-complementary
#08021A #1A1402 #081A02
monochromatic
#09021C #09021C #09021C #190653 #2B0B8C

Accessibility & contrast

On white

20.31
#08021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#08021A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08021A
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08021A#FFFFFF#000000##FFFFFF
##08021A1.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061B
Deuteranopia (green-blind)
#000519
Tritanopia (blue-blind)
#04060C
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08021a;
/* rgb */ color: rgb(8, 2, 26);
/* oklch */ color: oklch(12.6% 0.056 292.2);
Tailwind
colors: {
  custom: {
    50: '#4a4856',
    500: '#08021a',
    950: '#000000',
  },
}
SCSS
$custom: #08021a;
$custom-light: #4a4856;
$custom-dark: #000000;
JSON
{
  "hex": "#08021a",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 255,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.1257,
    "c": 0.05563,
    "h": 292.2
  },
  "luminance": 0.0017
}

Semantic roles & 50–950 ramp

primary
#08021A
secondary
#4E6018
accent
#FC2CC8
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08021A

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

Preview Lab → · Contrast checker → · Palette generator →

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