#400D18#400D18

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

Color values

HEX#400D18
RGBrgb(64, 13, 24)
HSLhsl(347, 66%, 15%)
HSVhsv(347, 80%, 25%)
CMYKcmyk(0%, 79.7%, 62.5%, 74.9%)
CIE-LABlab(12.25, 25.40, 6.61)
CIE-LCHlch(12.25, 26.25, 14.59°)
OKLaboklab(25.35% 0.0768 0.0166)
OKLCHoklch(25.35% 0.079 12.2)
XYZxyz(2.4234, 1.4441, 1.0151)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D18 #0D4035
analogous
#400D31 #400D18 #401C0D
triadic
#400D18 #18400D #0D1840
tetradic
#400D18 #31400D #0D4035 #1C0D40
square
#400D18 #31400D #0D4035 #1C0D40
split-complementary
#400D18 #0D401C #0D3140
monochromatic
#19050A #19050A #400D18 #73172B #A6223E

Accessibility & contrast

On white

16.29
#400D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D18
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D18#FFFFFF#000000##FFFFFF
##400D181.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1918
Deuteranopia (green-blind)
#272417
Tritanopia (blue-blind)
#470411
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d18;
/* rgb */ color: rgb(64, 13, 24);
/* oklch */ color: oklch(25.3% 0.079 12.2);
Tailwind
colors: {
  custom: {
    50: '#795054',
    500: '#400d18',
    950: '#000000',
  },
}
SCSS
$custom: #400d18;
$custom-light: #795054;
$custom-dark: #000000;
JSON
{
  "hex": "#400d18",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 24
  },
  "hsl": {
    "h": 347.059,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25349,
    "c": 0.07854,
    "h": 12.2
  },
  "luminance": 0.01444
}

Semantic roles & 50–950 ramp

primary
#400D18
secondary
#2D7C6B
accent
#E9C43F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #400D18

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

Preview Lab → · Contrast checker → · Palette generator →

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