#08041B#08041B

#08041B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.5% C 0.051 H 287.9°. Best body text is #FFFFFF at 20.12:1 contrast (WCAG AA passes).

Color values

HEX#08041B
RGBrgb(8, 4, 27)
HSLhsl(250, 74%, 6%)
HSVhsv(250, 85%, 11%)
CMYKcmyk(70.4%, 85.2%, 0%, 89.4%)
CIE-LABlab(1.97, 5.51, -11.74)
CIE-LCHlch(1.97, 12.97, 295.14°)
OKLaboklab(13.46% 0.0155 -0.0481)
OKLCHoklch(13.46% 0.051 287.9)
XYZxyz(0.3413, 0.2176, 1.0607)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08041B #171B04
analogous
#040B1B #08041B #13041B
triadic
#08041B #1B0804 #041B08
tetradic
#08041B #1B040B #171B04 #041B13
square
#08041B #1B040B #171B04 #041B13
split-complementary
#08041B #1B1304 #0B1B04
monochromatic
#08041B #08041B #08041B #180C50 #281486

Accessibility & contrast

On white

20.12
#08041B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08041B
20.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08041B#FFFFFF#000000##FFFFFF
##08041B1.0020.121.0420.12
#FFFFFF20.121.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08041b;
/* rgb */ color: rgb(8, 4, 27);
/* oklch */ color: oklch(13.5% 0.051 287.9);
Tailwind
colors: {
  custom: {
    50: '#4a4857',
    500: '#08041b',
    950: '#000000',
  },
}
SCSS
$custom: #08041b;
$custom-light: #4a4857;
$custom-dark: #000000;
JSON
{
  "hex": "#08041b",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 27
  },
  "hsl": {
    "h": 250.435,
    "s": 74.194,
    "l": 6.078
  },
  "oklch": {
    "l": 0.13461,
    "c": 0.05059,
    "h": 287.9
  },
  "luminance": 0.00218
}

Semantic roles & 50–950 ramp

primary
#08041B
secondary
#525D1E
accent
#F137D1
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #08041B

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

Preview Lab → · Contrast checker → · Palette generator →

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