#08031D#08031D

#08031D is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.3% C 0.057 H 287.9°. Best body text is #FFFFFF at 20.17:1 contrast (WCAG AA passes).

Color values

HEX#08031D
RGBrgb(8, 3, 29)
HSLhsl(252, 81%, 6%)
HSVhsv(252, 90%, 11%)
CMYKcmyk(72.4%, 89.7%, 0%, 88.6%)
CIE-LABlab(1.86, 6.52, -13.51)
CIE-LCHlch(1.86, 15.00, 295.76°)
OKLaboklab(13.33% 0.0175 -0.0542)
OKLCHoklch(13.33% 0.057 287.9)
XYZxyz(0.3544, 0.2054, 1.1831)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08031D #181D03
analogous
#030B1D #08031D #15031D
triadic
#08031D #1D0803 #031D08
tetradic
#08031D #1D030B #181D03 #031D15
square
#08031D #1D030B #181D03 #031D15
split-complementary
#08031D #1D1503 #0B1D03
monochromatic
#08031C #08031C #08031D #170954 #270E8C

Accessibility & contrast

On white

20.17
#08031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#08031D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08031D
20.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08031D#FFFFFF#000000##FFFFFF
##08031D1.0020.171.0420.17
#FFFFFF20.171.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071E
Deuteranopia (green-blind)
#00061C
Tritanopia (blue-blind)
#03080E
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #08031d;
/* rgb */ color: rgb(8, 3, 29);
/* oklch */ color: oklch(13.3% 0.057 287.9);
Tailwind
colors: {
  custom: {
    50: '#4a4858',
    500: '#08031d',
    950: '#000000',
  },
}
SCSS
$custom: #08031d;
$custom-light: #4a4858;
$custom-dark: #000000;
JSON
{
  "hex": "#08031d",
  "rgb": {
    "r": 8,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 251.538,
    "s": 81.25,
    "l": 6.275
  },
  "oklch": {
    "l": 0.13326,
    "c": 0.05699,
    "h": 287.9
  },
  "luminance": 0.00205
}

Semantic roles & 50–950 ramp

primary
#08031D
secondary
#54611B
accent
#F830D1
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08031D

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

Preview Lab → · Contrast checker → · Palette generator →

#08031D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva