#400808#400808

#400808 is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.4% C 0.085 H 26.2°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#400808
RGBrgb(64, 8, 8)
HSLhsl(0, 78%, 14%)
HSVhsv(0, 88%, 25%)
CMYKcmyk(0%, 87.5%, 87.5%, 74.9%)
CIE-LABlab(11.15, 26.46, 14.08)
CIE-LCHlch(11.15, 29.97, 28.03°)
OKLaboklab(24.42% 0.0763 0.0376)
OKLCHoklch(24.42% 0.085 26.2)
XYZxyz(2.2453, 1.2815, 0.3588)
Luminance0.0128 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400808 #084040
analogous
#400824 #400808 #402408
triadic
#400808 #084008 #080840
tetradic
#400808 #244008 #084040 #240840
square
#400808 #244008 #084040 #240840
split-complementary
#400808 #084024 #082440
monochromatic
#1B0303 #1B0303 #400808 #760F0F #AD1616

Accessibility & contrast

On white

16.72
#400808 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400808 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400808
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400808#FFFFFF#000000##FFFFFF
##4008081.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191607
Deuteranopia (green-blind)
#272206
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400808;
/* rgb */ color: rgb(64, 8, 8);
/* oklch */ color: oklch(24.4% 0.085 26.2);
Tailwind
colors: {
  custom: {
    50: '#7a4d4a',
    500: '#400808',
    950: '#000000',
  },
}
SCSS
$custom: #400808;
$custom-light: #7a4d4a;
$custom-dark: #000000;
JSON
{
  "hex": "#400808",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 8
  },
  "hsl": {
    "h": 0,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24424,
    "c": 0.08502,
    "h": 26.2
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#400808
secondary
#257E7E
accent
#F4F434
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400808

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

Preview Lab → · Contrast checker → · Palette generator →

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