#050408#050408

#050408 is a very dark, near-neutral violet. Relative luminance 0.001; OKLCH L 11.2% C 0.013 H 297.7°. Best body text is #FFFFFF at 20.44:1 contrast (WCAG AA passes).

Color values

HEX#050408
RGBrgb(5, 4, 8)
HSLhsl(255, 33%, 2%)
HSVhsv(255, 50%, 3%)
CMYKcmyk(37.5%, 50%, 0%, 96.9%)
CIE-LABlab(1.23, 0.82, -1.42)
CIE-LCHlch(1.23, 1.64, 299.89°)
OKLaboklab(11.2% 0.0059 -0.0113)
OKLCHoklch(11.2% 0.013 297.7)
XYZxyz(0.1498, 0.1366, 0.2482)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050408 #070804
analogous
#040508 #050408 #070408
triadic
#050408 #080504 #040805
tetradic
#050408 #080405 #070804 #040807
square
#050408 #080405 #070804 #040807
split-complementary
#050408 #080704 #050804
monochromatic
#0D0A14 #0D0A14 #0D0A14 #1F1831 #382D5A

Accessibility & contrast

On white

20.44
#050408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050408
20.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050408#FFFFFF#000000##FFFFFF
##0504081.0020.441.0320.44
#FFFFFF20.441.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030508
Deuteranopia (green-blind)
#030408
Tritanopia (blue-blind)
#050505
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #050408;
/* rgb */ color: rgb(5, 4, 8);
/* oklch */ color: oklch(11.2% 0.013 297.7);
Tailwind
colors: {
  custom: {
    50: '#49484a',
    500: '#050408',
    950: '#000000',
  },
}
SCSS
$custom: #050408;
$custom-light: #49484a;
$custom-dark: #000000;
JSON
{
  "hex": "#050408",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 8
  },
  "hsl": {
    "h": 255,
    "s": 33.333,
    "l": 2.353
  },
  "oklch": {
    "l": 0.11201,
    "c": 0.01279,
    "h": 297.7
  },
  "luminance": 0.00137
}

Semantic roles & 50–950 ramp

primary
#050408
secondary
#3A4028
accent
#C95EAF
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #050408

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

Preview Lab → · Contrast checker → · Palette generator →

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