#400D1F#400D1F

#400D1F is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.6% C 0.080 H 3.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#400D1F
RGBrgb(64, 13, 31)
HSLhsl(339, 66%, 15%)
HSVhsv(339, 80%, 25%)
CMYKcmyk(0%, 79.7%, 51.6%, 74.9%)
CIE-LABlab(12.46, 26.13, 1.67)
CIE-LCHlch(12.46, 26.19, 3.67°)
OKLaboklab(25.58% 0.0799 0.0046)
OKLCHoklch(25.58% 0.08 3.3)
XYZxyz(2.5058, 1.4771, 1.4492)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D1F #0D402E
analogous
#400D38 #400D1F #40150D
triadic
#400D1F #1F400D #0D1F40
tetradic
#400D1F #38400D #0D402E #150D40
square
#400D1F #38400D #0D402E #150D40
split-complementary
#400D1F #0D4015 #0D3840
monochromatic
#19050C #19050C #400D1F #731738 #A62250

Accessibility & contrast

On white

16.21
#400D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D1F
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D1F#FFFFFF#000000##FFFFFF
##400D1F1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181A1F
Deuteranopia (green-blind)
#26241E
Tritanopia (blue-blind)
#460614
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d1f;
/* rgb */ color: rgb(64, 13, 31);
/* oklch */ color: oklch(25.6% 0.080 3.3);
Tailwind
colors: {
  custom: {
    50: '#78505a',
    500: '#400d1f',
    950: '#000000',
  },
}
SCSS
$custom: #400d1f;
$custom-light: #78505a;
$custom-dark: #000000;
JSON
{
  "hex": "#400d1f",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 338.824,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25577,
    "c": 0.08008,
    "h": 3.3
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#400D1F
secondary
#2D7C60
accent
#E9AD3F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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