#400D1B#400D1B

#400D1B is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.4% C 0.079 H 8.4°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#400D1B
RGBrgb(64, 13, 27)
HSLhsl(344, 66%, 15%)
HSVhsv(344, 80%, 25%)
CMYKcmyk(0%, 79.7%, 57.8%, 74.9%)
CIE-LABlab(12.33, 25.70, 4.49)
CIE-LCHlch(12.33, 26.09, 9.90°)
OKLaboklab(25.44% 0.0782 0.0116)
OKLCHoklch(25.44% 0.079 8.4)
XYZxyz(2.4563, 1.4573, 1.1886)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D1B #0D4032
analogous
#400D35 #400D1B #40180D
triadic
#400D1B #1B400D #0D1B40
tetradic
#400D1B #35400D #0D4032 #180D40
square
#400D1B #35400D #0D4032 #180D40
split-complementary
#400D1B #0D4018 #0D3540
monochromatic
#19050B #19050B #400D1B #731730 #A62246

Accessibility & contrast

On white

16.26
#400D1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D1B
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D1B#FFFFFF#000000##FFFFFF
##400D1B1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191A1B
Deuteranopia (green-blind)
#26241A
Tritanopia (blue-blind)
#460413
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d1b;
/* rgb */ color: rgb(64, 13, 27);
/* oklch */ color: oklch(25.4% 0.079 8.4);
Tailwind
colors: {
  custom: {
    50: '#785057',
    500: '#400d1b',
    950: '#000000',
  },
}
SCSS
$custom: #400d1b;
$custom-light: #785057;
$custom-dark: #000000;
JSON
{
  "hex": "#400d1b",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 27
  },
  "hsl": {
    "h": 343.529,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2544,
    "c": 0.07901,
    "h": 8.4
  },
  "luminance": 0.01457
}

Semantic roles & 50–950 ramp

primary
#400D1B
secondary
#2D7C66
accent
#E9BA3F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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