#080412#080412

#080412 is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.6% C 0.034 H 297.5°. Best body text is #FFFFFF at 20.26:1 contrast (WCAG AA passes).

Color values

HEX#080412
RGBrgb(8, 4, 18)
HSLhsl(257, 64%, 4%)
HSVhsv(257, 78%, 7%)
CMYKcmyk(55.6%, 77.8%, 0%, 92.9%)
CIE-LABlab(1.64, 3.26, -5.66)
CIE-LCHlch(1.64, 6.53, 299.95°)
OKLaboklab(12.55% 0.0158 -0.0305)
OKLCHoklch(12.55% 0.034 297.5)
XYZxyz(0.2527, 0.1821, 0.5940)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080412 #0E1204
analogous
#040712 #080412 #0F0412
triadic
#080412 #120804 #041208
tetradic
#080412 #120407 #0E1204 #04120F
square
#080412 #120407 #0E1204 #04120F
split-complementary
#080412 #120F04 #071204
monochromatic
#0B0619 #0B0619 #0B0619 #1E0F44 #351A76

Accessibility & contrast

On white

20.26
#080412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#080412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080412
20.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080412#FFFFFF#000000##FFFFFF
##0804121.0020.261.0420.26
#FFFFFF20.261.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010613
Deuteranopia (green-blind)
#020612
Tritanopia (blue-blind)
#060609
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #080412;
/* rgb */ color: rgb(8, 4, 18);
/* oklch */ color: oklch(12.6% 0.034 297.5);
Tailwind
colors: {
  custom: {
    50: '#4a484f',
    500: '#080412',
    950: '#000000',
  },
}
SCSS
$custom: #080412;
$custom-light: #4a484f;
$custom-dark: #000000;
JSON
{
  "hex": "#080412",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 18
  },
  "hsl": {
    "h": 257.143,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.12552,
    "c": 0.03434,
    "h": 297.5
  },
  "luminance": 0.00182
}

Semantic roles & 50–950 ramp

primary
#080412
secondary
#445220
accent
#E741B7
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010002
muted
#777778

Preview Lab

Preview with #080412

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

Preview Lab → · Contrast checker → · Palette generator →

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