#400D0B#400D0B

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

Color values

HEX#400D0B
RGBrgb(64, 13, 11)
HSLhsl(2, 71%, 15%)
HSVhsv(2, 83%, 25%)
CMYKcmyk(0%, 79.7%, 82.8%, 74.9%)
CIE-LABlab(11.97, 24.44, 13.99)
CIE-LCHlch(11.97, 28.16, 29.79°)
OKLaboklab(25.06% 0.0707 0.0357)
OKLCHoklch(25.06% 0.079 26.8)
XYZxyz(2.3189, 1.4023, 0.4651)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D0B #0B3E40
analogous
#400B24 #400D0B #40280B
triadic
#400D0B #0B400D #0D0B40
tetradic
#400D0B #24400B #0B3E40 #280B40
square
#400D0B #24400B #0B3E40 #280B40
split-complementary
#400D0B #0B4028 #0B2440
monochromatic
#1A0504 #1A0504 #400D0B #741814 #A8221D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400D0B#FFFFFF#000000##FFFFFF
##400D0B1.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)
#1C180A
Deuteranopia (green-blind)
#282409
Tritanopia (blue-blind)
#47010D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400d0b;
/* rgb */ color: rgb(64, 13, 11);
/* oklch */ color: oklch(25.1% 0.079 26.8);
Tailwind
colors: {
  custom: {
    50: '#7a504b',
    500: '#400d0b',
    950: '#000000',
  },
}
SCSS
$custom: #400d0b;
$custom-light: #7a504b;
$custom-dark: #000000;
JSON
{
  "hex": "#400d0b",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 11
  },
  "hsl": {
    "h": 2.264,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25055,
    "c": 0.07924,
    "h": 26.8
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#400D0B
secondary
#2A7A7D
accent
#E7ED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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