#400D04#400D04

#400D04 is a very dark, moderate red. Relative luminance 0.014; OKLCH L 24.9% C 0.081 H 33.4°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#400D04
RGBrgb(64, 13, 4)
HSLhsl(9, 88%, 13%)
HSVhsv(9, 94%, 25%)
CMYKcmyk(0%, 79.7%, 93.8%, 74.9%)
CIE-LABlab(11.87, 24.08, 16.71)
CIE-LCHlch(11.87, 29.31, 34.76°)
OKLaboklab(24.95% 0.0676 0.0445)
OKLCHoklch(24.95% 0.081 33.4)
XYZxyz(2.2805, 1.3870, 0.2625)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D04 #043740
analogous
#400419 #400D04 #402B04
triadic
#400D04 #04400D #0D0440
tetradic
#400D04 #194004 #043740 #2B0440
square
#400D04 #194004 #043740 #2B0440
split-complementary
#400D04 #04402B #041940
monochromatic
#1D0602 #1D0602 #400D04 #7A1908 #B3240B

Accessibility & contrast

On white

16.44
#400D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400D04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D04
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D04#FFFFFF#000000##FFFFFF
##400D041.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1803
Deuteranopia (green-blind)
#292302
Tritanopia (blue-blind)
#47000B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400d04;
/* rgb */ color: rgb(64, 13, 4);
/* oklch */ color: oklch(24.9% 0.081 33.4);
Tailwind
colors: {
  custom: {
    50: '#7a4f48',
    500: '#400d04',
    950: '#000000',
  },
}
SCSS
$custom: #400d04;
$custom-light: #7a4f48;
$custom-dark: #000000;
JSON
{
  "hex": "#400d04",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 4
  },
  "hsl": {
    "h": 9,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24945,
    "c": 0.08092,
    "h": 33.4
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#400D04
secondary
#1F7281
accent
#DEFE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400D04

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

Preview Lab → · Contrast checker → · Palette generator →

#400D04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva