#08001F#08001F

#08001F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 12.4% C 0.070 H 290.2°. Best body text is #FFFFFF at 20.38:1 contrast (WCAG AA passes).

Color values

HEX#08001F
RGBrgb(8, 0, 31)
HSLhsl(255, 100%, 6%)
HSVhsv(255, 100%, 12%)
CMYKcmyk(74.2%, 100%, 0%, 87.8%)
CIE-LABlab(1.36, 8.37, -15.86)
CIE-LCHlch(1.36, 17.93, 297.82°)
OKLaboklab(12.41% 0.0243 -0.0658)
OKLCHoklch(12.41% 0.07 290.2)
XYZxyz(0.3474, 0.1505, 1.3068)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08001F #171F00
analogous
#00071F #08001F #17001F
triadic
#08001F #1F0800 #001F08
tetradic
#08001F #1F0007 #171F00 #001F17
square
#08001F #1F0007 #171F00 #001F17
split-complementary
#08001F #1F1700 #071F00
monochromatic
#08001F #08001F #08001F #18005C #280099

Accessibility & contrast

On white

20.38
#08001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08001F
20.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08001F#FFFFFF#000000##FFFFFF
##08001F1.0020.381.0320.38
#FFFFFF20.381.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000520
Deuteranopia (green-blind)
#00041E
Tritanopia (blue-blind)
#02060D
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #08001f;
/* rgb */ color: rgb(8, 0, 31);
/* oklch */ color: oklch(12.4% 0.070 290.2);
Tailwind
colors: {
  custom: {
    50: '#4a475a',
    500: '#08001f',
    950: '#000000',
  },
}
SCSS
$custom: #08001f;
$custom-light: #4a475a;
$custom-dark: #000000;
JSON
{
  "hex": "#08001f",
  "rgb": {
    "r": 8,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 255.484,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.12406,
    "c": 0.07009,
    "h": 290.2
  },
  "luminance": 0.00151
}

Semantic roles & 50–950 ramp

primary
#08001F
secondary
#526812
accent
#FF29C8
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010004
muted
#777779

Preview Lab

Preview with #08001F

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

Preview Lab → · Contrast checker → · Palette generator →

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