#400408#400408

#400408 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.0% C 0.089 H 23.8°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#400408
RGBrgb(64, 4, 8)
HSLhsl(356, 88%, 13%)
HSVhsv(356, 94%, 25%)
CMYKcmyk(0%, 93.8%, 87.5%, 74.9%)
CIE-LABlab(10.52, 28.23, 13.21)
CIE-LCHlch(10.52, 31.17, 25.07°)
OKLaboklab(23.96% 0.0819 0.0361)
OKLCHoklch(23.96% 0.089 23.8)
XYZxyz(2.2019, 1.1947, 0.3443)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400408 #04403C
analogous
#400426 #400408 #401E04
triadic
#400408 #084004 #040840
tetradic
#400408 #264004 #04403C #1E0440
square
#400408 #264004 #04403C #1E0440
split-complementary
#400408 #04401E #042640
monochromatic
#1D0204 #1D0204 #400408 #7A080F #B30B16

Accessibility & contrast

On white

16.95
#400408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#400408 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400408
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400408#FFFFFF#000000##FFFFFF
##4004081.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171408
Deuteranopia (green-blind)
#262106
Tritanopia (blue-blind)
#470006
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400408;
/* rgb */ color: rgb(64, 4, 8);
/* oklch */ color: oklch(24.0% 0.089 23.8);
Tailwind
colors: {
  custom: {
    50: '#7a4b4a',
    500: '#400408',
    950: '#000000',
  },
}
SCSS
$custom: #400408;
$custom-light: #7a4b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#400408",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 8
  },
  "hsl": {
    "h": 356,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23958,
    "c": 0.08949,
    "h": 23.8
  },
  "luminance": 0.01194
}

Semantic roles & 50–950 ramp

primary
#400408
secondary
#1F817B
accent
#FEF029
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400408

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

Preview Lab → · Contrast checker → · Palette generator →

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