#400D0E#400D0E

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

Color values

HEX#400D0E
RGBrgb(64, 13, 14)
HSLhsl(359, 66%, 15%)
HSVhsv(359, 80%, 25%)
CMYKcmyk(0%, 79.7%, 78.1%, 74.9%)
CIE-LABlab(12.02, 24.62, 12.66)
CIE-LCHlch(12.02, 27.68, 27.21°)
OKLaboklab(25.11% 0.072 0.0319)
OKLCHoklch(25.11% 0.079 23.9)
XYZxyz(2.3378, 1.4099, 0.5644)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D0E #0D403F
analogous
#400D27 #400D0E #40260D
triadic
#400D0E #0E400D #0D0E40
tetradic
#400D0E #27400D #0D403F #260D40
square
#400D0E #27400D #0D403F #260D40
split-complementary
#400D0E #0D4026 #0D2740
monochromatic
#190506 #190506 #400D0E #731719 #A62224

Accessibility & contrast

On white

16.38
#400D0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D0E
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D0E#FFFFFF#000000##FFFFFF
##400D0E1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B190E
Deuteranopia (green-blind)
#28240C
Tritanopia (blue-blind)
#47010E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d0e;
/* rgb */ color: rgb(64, 13, 14);
/* oklch */ color: oklch(25.1% 0.079 23.9);
Tailwind
colors: {
  custom: {
    50: '#7a504d',
    500: '#400d0e',
    950: '#000000',
  },
}
SCSS
$custom: #400d0e;
$custom-light: #7a504d;
$custom-dark: #000000;
JSON
{
  "hex": "#400d0e",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 14
  },
  "hsl": {
    "h": 358.824,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25108,
    "c": 0.07877,
    "h": 23.9
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#400D0E
secondary
#2D7C7A
accent
#E9E63F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400D0E

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

Preview Lab → · Contrast checker → · Palette generator →

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