#08031C#08031C

#08031C is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.2% C 0.055 H 288.7°. Best body text is #FFFFFF at 20.19:1 contrast (WCAG AA passes).

Color values

HEX#08031C
RGBrgb(8, 3, 28)
HSLhsl(252, 81%, 6%)
HSVhsv(252, 89%, 11%)
CMYKcmyk(71.4%, 89.3%, 0%, 89%)
CIE-LABlab(1.81, 6.21, -12.77)
CIE-LCHlch(1.81, 14.20, 295.92°)
OKLaboklab(13.21% 0.0178 -0.0524)
OKLCHoklch(13.21% 0.055 288.7)
XYZxyz(0.3422, 0.2006, 1.1191)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08031C #171C03
analogous
#030A1C #08031C #14031C
triadic
#08031C #1C0803 #031C08
tetradic
#08031C #1C030A #171C03 #031C14
square
#08031C #1C030A #171C03 #031C14
split-complementary
#08031C #1C1403 #0A1C03
monochromatic
#08031C #08031C #08031C #180953 #280F8B

Accessibility & contrast

On white

20.19
#08031C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08031C
20.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08031C#FFFFFF#000000##FFFFFF
##08031C1.0020.191.0420.19
#FFFFFF20.191.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08031c;
/* rgb */ color: rgb(8, 3, 28);
/* oklch */ color: oklch(13.2% 0.055 288.7);
Tailwind
colors: {
  custom: {
    50: '#4a4858',
    500: '#08031c',
    950: '#000000',
  },
}
SCSS
$custom: #08031c;
$custom-light: #4a4858;
$custom-dark: #000000;
JSON
{
  "hex": "#08031c",
  "rgb": {
    "r": 8,
    "g": 3,
    "b": 28
  },
  "hsl": {
    "h": 252,
    "s": 80.645,
    "l": 6.078
  },
  "oklch": {
    "l": 0.13207,
    "c": 0.05537,
    "h": 288.7
  },
  "luminance": 0.00201
}

Semantic roles & 50–950 ramp

primary
#08031C
secondary
#52601B
accent
#F731CF
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08031C

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

Preview Lab → · Contrast checker → · Palette generator →

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