#400B0D#400B0D

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

Color values

HEX#400B0D
RGBrgb(64, 11, 13)
HSLhsl(358, 71%, 15%)
HSVhsv(358, 83%, 25%)
CMYKcmyk(0%, 82.8%, 79.7%, 74.9%)
CIE-LABlab(11.68, 25.46, 12.68)
CIE-LCHlch(11.68, 28.44, 26.48°)
OKLaboklab(24.85% 0.0744 0.0323)
OKLCHoklch(24.85% 0.081 23.5)
XYZxyz(2.3069, 1.3587, 0.5215)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B0D #0B403E
analogous
#400B28 #400B0D #40240B
triadic
#400B0D #0D400B #0B0D40
tetradic
#400B0D #28400B #0B403E #240B40
square
#400B0D #28400B #0B403E #240B40
split-complementary
#400B0D #0B4024 #0B2840
monochromatic
#1A0405 #1A0405 #400B0D #741418 #A81D22

Accessibility & contrast

On white

16.51
#400B0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400B0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B0D
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B0D#FFFFFF#000000##FFFFFF
##400B0D1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A180D
Deuteranopia (green-blind)
#28230B
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b0d;
/* rgb */ color: rgb(64, 11, 13);
/* oklch */ color: oklch(24.8% 0.081 23.5);
Tailwind
colors: {
  custom: {
    50: '#7a4f4c',
    500: '#400b0d',
    950: '#000000',
  },
}
SCSS
$custom: #400b0d;
$custom-light: #7a4f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#400b0d",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 13
  },
  "hsl": {
    "h": 357.736,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24847,
    "c": 0.08115,
    "h": 23.5
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#400B0D
secondary
#2A7D7A
accent
#EDE73A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400B0D

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

Preview Lab → · Contrast checker → · Palette generator →

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