#040808#040808

#040808 is a very dark, near-neutral teal. Relative luminance 0.002; OKLCH L 12.8% C 0.009 H 196.1°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#040808
RGBrgb(4, 8, 8)
HSLhsl(180, 33%, 2%)
HSVhsv(180, 50%, 3%)
CMYKcmyk(50%, 0%, 0%, 96.9%)
CIE-LABlab(1.96, -1.05, -0.37)
CIE-LCHlch(1.96, 1.11, 199.37°)
OKLaboklab(12.84% -0.0086 -0.0025)
OKLCHoklch(12.84% 0.009 196.1)
XYZxyz(0.1807, 0.2170, 0.2620)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040808 #080404
analogous
#040806 #040808 #040608
triadic
#040808 #080408 #080804
tetradic
#040808 #060408 #080404 #060804
square
#040808 #060408 #080404 #060804
split-complementary
#040808 #080406 #080604
monochromatic
#0A1414 #0A1414 #0A1414 #183131 #2D5A5A

Accessibility & contrast

On white

20.13
#040808 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040808
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040808#FFFFFF#000000##FFFFFF
##0408081.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070808
Deuteranopia (green-blind)
#070708
Tritanopia (blue-blind)
#030808
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040808;
/* rgb */ color: rgb(4, 8, 8);
/* oklch */ color: oklch(12.8% 0.009 196.1);
Tailwind
colors: {
  custom: {
    50: '#484a4a',
    500: '#040808',
    950: '#000000',
  },
}
SCSS
$custom: #040808;
$custom-light: #484a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040808",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 8
  },
  "hsl": {
    "h": 180,
    "s": 33.333,
    "l": 2.353
  },
  "oklch": {
    "l": 0.12841,
    "c": 0.00898,
    "h": 196.1
  },
  "luminance": 0.00217
}

Semantic roles & 50–950 ramp

primary
#040808
secondary
#402828
accent
#5E5EC9
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040808

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

Preview Lab → · Contrast checker → · Palette generator →

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