#400D1E#400D1E

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

Color values

HEX#400D1E
RGBrgb(64, 13, 30)
HSLhsl(340, 66%, 15%)
HSVhsv(340, 80%, 25%)
CMYKcmyk(0%, 79.7%, 53.1%, 74.9%)
CIE-LABlab(12.43, 26.02, 2.37)
CIE-LCHlch(12.43, 26.13, 5.21°)
OKLaboklab(25.54% 0.0795 0.0064)
OKLCHoklch(25.54% 0.08 4.6)
XYZxyz(2.4928, 1.4719, 1.3809)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D1E #0D402F
analogous
#400D37 #400D1E #40150D
triadic
#400D1E #1E400D #0D1E40
tetradic
#400D1E #37400D #0D402F #150D40
square
#400D1E #37400D #0D402F #150D40
split-complementary
#400D1E #0D4015 #0D3740
monochromatic
#19050C #19050C #400D1E #731736 #A6224E

Accessibility & contrast

On white

16.22
#400D1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D1E
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D1E#FFFFFF#000000##FFFFFF
##400D1E1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181A1E
Deuteranopia (green-blind)
#26241D
Tritanopia (blue-blind)
#460514
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d1e;
/* rgb */ color: rgb(64, 13, 30);
/* oklch */ color: oklch(25.5% 0.080 4.6);
Tailwind
colors: {
  custom: {
    50: '#785059',
    500: '#400d1e',
    950: '#000000',
  },
}
SCSS
$custom: #400d1e;
$custom-light: #785059;
$custom-dark: #000000;
JSON
{
  "hex": "#400d1e",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 30
  },
  "hsl": {
    "h": 340,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25541,
    "c": 0.07976,
    "h": 4.6
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#400D1E
secondary
#2D7C61
accent
#E9B03F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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