#400D0F#400D0F

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

Color values

HEX#400D0F
RGBrgb(64, 13, 15)
HSLhsl(358, 66%, 15%)
HSVhsv(358, 80%, 25%)
CMYKcmyk(0%, 79.7%, 76.6%, 74.9%)
CIE-LABlab(12.04, 24.68, 12.16)
CIE-LCHlch(12.04, 27.52, 26.23°)
OKLaboklab(25.13% 0.0725 0.0305)
OKLCHoklch(25.13% 0.079 22.8)
XYZxyz(2.3448, 1.4127, 0.6011)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D0F #0D403E
analogous
#400D28 #400D0F #40240D
triadic
#400D0F #0F400D #0D0F40
tetradic
#400D0F #28400D #0D403E #240D40
square
#400D0F #28400D #0D403E #240D40
split-complementary
#400D0F #0D4024 #0D2840
monochromatic
#190506 #190506 #400D0F #73171B #A62227

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400D0F#FFFFFF#000000##FFFFFF
##400D0F1.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)
#1B190F
Deuteranopia (green-blind)
#28240D
Tritanopia (blue-blind)
#47010E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d0f;
/* rgb */ color: rgb(64, 13, 15);
/* oklch */ color: oklch(25.1% 0.079 22.8);
Tailwind
colors: {
  custom: {
    50: '#79504d',
    500: '#400d0f',
    950: '#000000',
  },
}
SCSS
$custom: #400d0f;
$custom-light: #79504d;
$custom-dark: #000000;
JSON
{
  "hex": "#400d0f",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 15
  },
  "hsl": {
    "h": 357.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25128,
    "c": 0.07863,
    "h": 22.8
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#400D0F
secondary
#2D7C78
accent
#E9E23F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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