#08020F#08020F

#08020F is a very dark, muted violet. Relative luminance 0.001; OKLCH L 11.3% C 0.038 H 307.9°. Best body text is #FFFFFF at 20.47:1 contrast (WCAG AA passes).

Color values

HEX#08020F
RGBrgb(8, 2, 15)
HSLhsl(268, 76%, 3%)
HSVhsv(268, 87%, 6%)
CMYKcmyk(46.7%, 86.7%, 0%, 94.1%)
CIE-LABlab(1.17, 3.48, -4.65)
CIE-LCHlch(1.17, 5.81, 306.85°)
OKLaboklab(11.35% 0.0234 -0.0301)
OKLCHoklch(11.35% 0.038 307.9)
XYZxyz(0.2081, 0.1295, 0.4659)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08020F #090F02
analogous
#02020F #08020F #0E020F
triadic
#08020F #0F0802 #020F08
tetradic
#08020F #0F0202 #090F02 #020F0E
square
#08020F #0F0202 #090F02 #020F0E
split-complementary
#08020F #0F0E02 #020F02
monochromatic
#0E041B #0E041B #0E041B #250945 #42107B

Accessibility & contrast

On white

20.47
#08020F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#08020F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08020F
20.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08020F#FFFFFF#000000##FFFFFF
##08020F1.0020.471.0320.47
#FFFFFF20.471.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000410
Deuteranopia (green-blind)
#01040F
Tritanopia (blue-blind)
#070406
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #08020f;
/* rgb */ color: rgb(8, 2, 15);
/* oklch */ color: oklch(11.3% 0.038 307.9);
Tailwind
colors: {
  custom: {
    50: '#4a474e',
    500: '#08020f',
    950: '#000000',
  },
}
SCSS
$custom: #08020f;
$custom-light: #4a474e;
$custom-dark: #000000;
JSON
{
  "hex": "#08020f",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 15
  },
  "hsl": {
    "h": 267.692,
    "s": 76.471,
    "l": 3.333
  },
  "oklch": {
    "l": 0.1135,
    "c": 0.03816,
    "h": 307.9
  },
  "luminance": 0.0013
}

Semantic roles & 50–950 ramp

primary
#08020F
secondary
#395419
accent
#F3359B
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08020F

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

Preview Lab → · Contrast checker → · Palette generator →

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