#08021C#08021C

#08021C is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.8% C 0.059 H 290.3°. Best body text is #FFFFFF at 20.27:1 contrast (WCAG AA passes).

Color values

HEX#08021C
RGBrgb(8, 2, 28)
HSLhsl(254, 87%, 6%)
HSVhsv(254, 93%, 11%)
CMYKcmyk(71.4%, 92.9%, 0%, 89%)
CIE-LABlab(1.62, 6.61, -13.06)
CIE-LCHlch(1.62, 14.64, 296.84°)
OKLaboklab(12.82% 0.0203 -0.055)
OKLCHoklch(12.82% 0.059 290.3)
XYZxyz(0.3314, 0.1789, 1.1154)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08021C #161C02
analogous
#02091C #08021C #15021C
triadic
#08021C #1C0802 #021C08
tetradic
#08021C #1C0209 #161C02 #021C15
square
#08021C #1C0209 #161C02 #021C15
split-complementary
#08021C #1C1502 #091C02
monochromatic
#08021D #08021D #08021D #180655 #290A8E

Accessibility & contrast

On white

20.27
#08021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08021C
20.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08021C#FFFFFF#000000##FFFFFF
##08021C1.0020.271.0420.27
#FFFFFF20.271.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061D
Deuteranopia (green-blind)
#00051B
Tritanopia (blue-blind)
#03070D
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08021c;
/* rgb */ color: rgb(8, 2, 28);
/* oklch */ color: oklch(12.8% 0.059 290.3);
Tailwind
colors: {
  custom: {
    50: '#4a4757',
    500: '#08021c',
    950: '#000000',
  },
}
SCSS
$custom: #08021c;
$custom-light: #4a4757;
$custom-dark: #000000;
JSON
{
  "hex": "#08021c",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 253.846,
    "s": 86.667,
    "l": 5.882
  },
  "oklch": {
    "l": 0.12819,
    "c": 0.05869,
    "h": 290.3
  },
  "luminance": 0.00179
}

Semantic roles & 50–950 ramp

primary
#08021C
secondary
#516218
accent
#FD2BCC
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08021C

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

Preview Lab → · Contrast checker → · Palette generator →

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