#400D0C#400D0C

#400D0C is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.1% C 0.079 H 25.9°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#400D0C
RGBrgb(64, 13, 12)
HSLhsl(1, 68%, 15%)
HSVhsv(1, 81%, 25%)
CMYKcmyk(0%, 79.7%, 81.2%, 74.9%)
CIE-LABlab(11.99, 24.50, 13.57)
CIE-LCHlch(11.99, 28.01, 28.98°)
OKLaboklab(25.07% 0.0712 0.0345)
OKLCHoklch(25.07% 0.079 25.9)
XYZxyz(2.3249, 1.4047, 0.4965)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D0C #0C3F40
analogous
#400C25 #400D0C #40270C
triadic
#400D0C #0C400D #0D0C40
tetradic
#400D0C #25400C #0C3F40 #270C40
square
#400D0C #25400C #0C3F40 #270C40
split-complementary
#400D0C #0C4027 #0C2540
monochromatic
#1A0505 #1A0505 #400D0C #741716 #A7221F

Accessibility & contrast

On white

16.40
#400D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D0C
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D0C#FFFFFF#000000##FFFFFF
##400D0C1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C180B
Deuteranopia (green-blind)
#28240A
Tritanopia (blue-blind)
#47010D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400d0c;
/* rgb */ color: rgb(64, 13, 12);
/* oklch */ color: oklch(25.1% 0.079 25.9);
Tailwind
colors: {
  custom: {
    50: '#7a504c',
    500: '#400d0c',
    950: '#000000',
  },
}
SCSS
$custom: #400d0c;
$custom-light: #7a504c;
$custom-dark: #000000;
JSON
{
  "hex": "#400d0c",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 12
  },
  "hsl": {
    "h": 1.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25072,
    "c": 0.07907,
    "h": 25.9
  },
  "luminance": 0.01404
}

Semantic roles & 50–950 ramp

primary
#400D0C
secondary
#2C7B7C
accent
#E8EB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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