#08031F#08031F

#08031F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.6% C 0.060 H 286.3°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#08031F
RGBrgb(8, 3, 31)
HSLhsl(251, 82%, 7%)
HSVhsv(251, 90%, 12%)
CMYKcmyk(74.2%, 90.3%, 0%, 87.8%)
CIE-LABlab(1.95, 7.17, -14.97)
CIE-LCHlch(1.95, 16.60, 295.58°)
OKLaboklab(13.57% 0.0169 -0.0578)
OKLCHoklch(13.57% 0.06 286.3)
XYZxyz(0.3800, 0.2157, 1.3177)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08031F #1A1F03
analogous
#030C1F #08031F #16031F
triadic
#08031F #1F0803 #031F08
tetradic
#08031F #1F030C #1A1F03 #031F16
square
#08031F #1F030C #1A1F03 #031F16
split-complementary
#08031F #1F1603 #0C1F03
monochromatic
#07031C #07031C #08031F #160857 #250E8F

Accessibility & contrast

On white

20.13
#08031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08031F
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08031F#FFFFFF#000000##FFFFFF
##08031F1.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00061E
Tritanopia (blue-blind)
#02090F
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #08031f;
/* rgb */ color: rgb(8, 3, 31);
/* oklch */ color: oklch(13.6% 0.060 286.3);
Tailwind
colors: {
  custom: {
    50: '#4a485a',
    500: '#08031f',
    950: '#000000',
  },
}
SCSS
$custom: #08031f;
$custom-light: #4a485a;
$custom-dark: #000000;
JSON
{
  "hex": "#08031f",
  "rgb": {
    "r": 8,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 250.714,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.13571,
    "c": 0.06019,
    "h": 286.3
  },
  "luminance": 0.00216
}

Semantic roles & 50–950 ramp

primary
#08031F
secondary
#56631B
accent
#F92FD5
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #08031F

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

Preview Lab → · Contrast checker → · Palette generator →

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