#08031B#08031B

#08031B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.1% C 0.054 H 289.6°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#08031B
RGBrgb(8, 3, 27)
HSLhsl(253, 80%, 6%)
HSVhsv(253, 89%, 11%)
CMYKcmyk(70.4%, 88.9%, 0%, 89.4%)
CIE-LABlab(1.77, 5.91, -12.03)
CIE-LCHlch(1.77, 13.40, 296.17°)
OKLaboklab(13.09% 0.018 -0.0506)
OKLCHoklch(13.09% 0.054 289.6)
XYZxyz(0.3305, 0.1959, 1.0571)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08031B #161B03
analogous
#030A1B #08031B #14031B
triadic
#08031B #1B0803 #031B08
tetradic
#08031B #1B030A #161B03 #031B14
square
#08031B #1B030A #161B03 #031B14
split-complementary
#08031B #1B1403 #0A1B03
monochromatic
#08031C #08031C #08031C #180952 #290F89

Accessibility & contrast

On white

20.21
#08031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08031B
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08031B#FFFFFF#000000##FFFFFF
##08031B1.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071C
Deuteranopia (green-blind)
#00061A
Tritanopia (blue-blind)
#03070D
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08031b;
/* rgb */ color: rgb(8, 3, 27);
/* oklch */ color: oklch(13.1% 0.054 289.6);
Tailwind
colors: {
  custom: {
    50: '#4a4857',
    500: '#08031b',
    950: '#000000',
  },
}
SCSS
$custom: #08031b;
$custom-light: #4a4857;
$custom-dark: #000000;
JSON
{
  "hex": "#08031b",
  "rgb": {
    "r": 8,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 252.5,
    "s": 80,
    "l": 5.882
  },
  "oklch": {
    "l": 0.13089,
    "c": 0.05373,
    "h": 289.6
  },
  "luminance": 0.00196
}

Semantic roles & 50–950 ramp

primary
#08031B
secondary
#515F1B
accent
#F631CD
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08031B

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

Preview Lab → · Contrast checker → · Palette generator →

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