#08041C#08041C

#08041C is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.6% C 0.052 H 287.1°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#08041C
RGBrgb(8, 4, 28)
HSLhsl(250, 75%, 6%)
HSVhsv(250, 86%, 11%)
CMYKcmyk(71.4%, 85.7%, 0%, 89%)
CIE-LABlab(2.01, 5.81, -12.48)
CIE-LCHlch(2.01, 13.77, 294.96°)
OKLaboklab(13.57% 0.0154 -0.05)
OKLCHoklch(13.57% 0.052 287.1)
XYZxyz(0.3531, 0.2223, 1.1227)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08041C #181C04
analogous
#040C1C #08041C #14041C
triadic
#08041C #1C0804 #041C08
tetradic
#08041C #1C040C #181C04 #041C14
square
#08041C #1C040C #181C04 #041C14
split-complementary
#08041C #1C1404 #0C1C04
monochromatic
#08041B #08041B #08041C #170C52 #271387

Accessibility & contrast

On white

20.11
#08041C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08041C
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08041C#FFFFFF#000000##FFFFFF
##08041C1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00081D
Deuteranopia (green-blind)
#00071B
Tritanopia (blue-blind)
#03090E
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #08041c;
/* rgb */ color: rgb(8, 4, 28);
/* oklch */ color: oklch(13.6% 0.052 287.1);
Tailwind
colors: {
  custom: {
    50: '#4a4858',
    500: '#08041c',
    950: '#000000',
  },
}
SCSS
$custom: #08041c;
$custom-light: #4a4858;
$custom-dark: #000000;
JSON
{
  "hex": "#08041c",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 28
  },
  "hsl": {
    "h": 250,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.13573,
    "c": 0.05231,
    "h": 287.1
  },
  "luminance": 0.00222
}

Semantic roles & 50–950 ramp

primary
#08041C
secondary
#545E1D
accent
#F236D2
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08041C

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

Preview Lab → · Contrast checker → · Palette generator →

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