#400D2C#400D2C

#400D2C is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.1% C 0.087 H 347.4°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#400D2C
RGBrgb(64, 13, 44)
HSLhsl(324, 66%, 15%)
HSVhsv(324, 80%, 25%)
CMYKcmyk(0%, 79.7%, 31.2%, 74.9%)
CIE-LABlab(12.98, 27.87, -7.18)
CIE-LCHlch(12.98, 28.78, 345.56°)
OKLaboklab(26.13% 0.0847 -0.0189)
OKLCHoklch(26.13% 0.087 347.4)
XYZxyz(2.7130, 1.5600, 2.5406)
Luminance0.0156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D2C #0D4021
analogous
#3A0D40 #400D2C #400D13
triadic
#400D2C #2C400D #0D2C40
tetradic
#400D2C #403A0D #0D4021 #0D1340
square
#400D2C #403A0D #0D4021 #0D1340
split-complementary
#400D2C #13400D #0D403A
monochromatic
#190511 #190511 #400D2C #73174F #A62272

Accessibility & contrast

On white

16.01
#400D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400D2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D2C
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D2C#FFFFFF#000000##FFFFFF
##400D2C1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141C2D
Deuteranopia (green-blind)
#23252B
Tritanopia (blue-blind)
#450B1B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400d2c;
/* rgb */ color: rgb(64, 13, 44);
/* oklch */ color: oklch(26.1% 0.087 347.4);
Tailwind
colors: {
  custom: {
    50: '#775165',
    500: '#400d2c',
    950: '#000000',
  },
}
SCSS
$custom: #400d2c;
$custom-light: #775165;
$custom-dark: #000000;
JSON
{
  "hex": "#400d2c",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 323.529,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26132,
    "c": 0.08674,
    "h": 347.4
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#400D2C
secondary
#2D7C4C
accent
#E9823F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #400D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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