#400404#400404

#400404 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 23.9% C 0.090 H 27.5°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#400404
RGBrgb(64, 4, 4)
HSLhsl(0, 88%, 13%)
HSVhsv(0, 94%, 25%)
CMYKcmyk(0%, 93.8%, 93.8%, 74.9%)
CIE-LABlab(10.45, 28.04, 14.75)
CIE-LCHlch(10.45, 31.68, 27.75°)
OKLaboklab(23.89% 0.0799 0.0417)
OKLCHoklch(23.89% 0.09 27.5)
XYZxyz(2.1800, 1.1860, 0.2290)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400404 #044040
analogous
#400422 #400404 #402204
triadic
#400404 #044004 #040440
tetradic
#400404 #224004 #044040 #220440
square
#400404 #224004 #044040 #220440
split-complementary
#400404 #044022 #042240
monochromatic
#1D0202 #1D0202 #400404 #7A0808 #B30B0B

Accessibility & contrast

On white

16.97
#400404 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400404
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400404#FFFFFF#000000##FFFFFF
##4004041.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171403
Deuteranopia (green-blind)
#262102
Tritanopia (blue-blind)
#480005
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400404;
/* rgb */ color: rgb(64, 4, 4);
/* oklch */ color: oklch(23.9% 0.090 27.5);
Tailwind
colors: {
  custom: {
    50: '#7a4b48',
    500: '#400404',
    950: '#000000',
  },
}
SCSS
$custom: #400404;
$custom-light: #7a4b48;
$custom-dark: #000000;
JSON
{
  "hex": "#400404",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 4
  },
  "hsl": {
    "h": 0,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23889,
    "c": 0.09012,
    "h": 27.5
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#400404
secondary
#1F8181
accent
#FEFE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400404

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

Preview Lab → · Contrast checker → · Palette generator →

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