#040408#040408

#040408 is a very dark, near-neutral blue. Relative luminance 0.001; OKLCH L 11.0% C 0.013 H 284.1°. Best body text is #FFFFFF at 20.47:1 contrast (WCAG AA passes).

Color values

HEX#040408
RGBrgb(4, 4, 8)
HSLhsl(240, 33%, 2%)
HSVhsv(240, 50%, 3%)
CMYKcmyk(50%, 50%, 0%, 96.9%)
CIE-LABlab(1.18, 0.56, -1.51)
CIE-LCHlch(1.18, 1.61, 290.13°)
OKLaboklab(10.99% 0.0031 -0.0123)
OKLCHoklch(10.99% 0.013 284.1)
XYZxyz(0.1373, 0.1302, 0.2476)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040408 #080804
analogous
#040608 #040408 #060408
triadic
#040408 #080404 #040804
tetradic
#040408 #080406 #080804 #040806
square
#040408 #080406 #080804 #040806
split-complementary
#040408 #080604 #060804
monochromatic
#0A0A14 #0A0A14 #0A0A14 #181831 #2D2D5A

Accessibility & contrast

On white

20.47
#040408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040408
20.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040408#FFFFFF#000000##FFFFFF
##0404081.0020.471.0320.47
#FFFFFF20.471.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030408
Deuteranopia (green-blind)
#030408
Tritanopia (blue-blind)
#030505
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040408;
/* rgb */ color: rgb(4, 4, 8);
/* oklch */ color: oklch(11.0% 0.013 284.1);
Tailwind
colors: {
  custom: {
    50: '#48484a',
    500: '#040408',
    950: '#000000',
  },
}
SCSS
$custom: #040408;
$custom-light: #48484a;
$custom-dark: #000000;
JSON
{
  "hex": "#040408",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 8
  },
  "hsl": {
    "h": 240,
    "s": 33.333,
    "l": 2.353
  },
  "oklch": {
    "l": 0.10991,
    "c": 0.0127,
    "h": 284.1
  },
  "luminance": 0.0013
}

Semantic roles & 50–950 ramp

primary
#040408
secondary
#404028
accent
#C95EC9
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040408

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

Preview Lab → · Contrast checker → · Palette generator →

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