#080312#080312

#080312 is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.1% C 0.038 H 300.1°. Best body text is #FFFFFF at 20.35:1 contrast (WCAG AA passes).

Color values

HEX#080312
RGBrgb(8, 3, 18)
HSLhsl(260, 71%, 4%)
HSVhsv(260, 83%, 7%)
CMYKcmyk(55.6%, 83.3%, 0%, 92.9%)
CIE-LABlab(1.45, 3.66, -5.95)
CIE-LCHlch(1.45, 6.98, 301.64°)
OKLaboklab(12.12% 0.0193 -0.0332)
OKLCHoklch(12.12% 0.038 300.1)
XYZxyz(0.2419, 0.1604, 0.5904)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080312 #0D1203
analogous
#030612 #080312 #100312
triadic
#080312 #120803 #031208
tetradic
#080312 #120306 #0D1203 #031210
square
#080312 #120306 #0D1203 #031210
split-complementary
#080312 #121003 #061203
monochromatic
#0C041A #0C041A #0C041A #1F0C46 #37147B

Accessibility & contrast

On white

20.35
#080312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#080312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080312
20.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080312#FFFFFF#000000##FFFFFF
##0803121.0020.351.0320.35
#FFFFFF20.351.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000513
Deuteranopia (green-blind)
#010512
Tritanopia (blue-blind)
#060508
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #080312;
/* rgb */ color: rgb(8, 3, 18);
/* oklch */ color: oklch(12.1% 0.038 300.1);
Tailwind
colors: {
  custom: {
    50: '#4a484f',
    500: '#080312',
    950: '#000000',
  },
}
SCSS
$custom: #080312;
$custom-light: #4a484f;
$custom-dark: #000000;
JSON
{
  "hex": "#080312",
  "rgb": {
    "r": 8,
    "g": 3,
    "b": 18
  },
  "hsl": {
    "h": 260,
    "s": 71.429,
    "l": 4.118
  },
  "oklch": {
    "l": 0.12119,
    "c": 0.03841,
    "h": 300.1
  },
  "luminance": 0.0016
}

Semantic roles & 50–950 ramp

primary
#080312
secondary
#42551C
accent
#EE3AB2
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010002
muted
#777778

Preview Lab

Preview with #080312

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

Preview Lab → · Contrast checker → · Palette generator →

#080312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva