#400D31#400D31

#400D31 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.4% C 0.090 H 341.9°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#400D31
RGBrgb(64, 13, 49)
HSLhsl(318, 66%, 15%)
HSVhsv(318, 80%, 25%)
CMYKcmyk(0%, 79.7%, 23.4%, 74.9%)
CIE-LABlab(13.23, 28.67, -10.45)
CIE-LCHlch(13.23, 30.51, 339.97°)
OKLaboklab(26.39% 0.0859 -0.028)
OKLCHoklch(26.39% 0.09 341.9)
XYZxyz(2.8127, 1.5999, 3.0658)
Luminance0.0160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D31 #0D401C
analogous
#350D40 #400D31 #400D17
triadic
#400D31 #31400D #0D3140
tetradic
#400D31 #40350D #0D401C #0D1740
square
#400D31 #40350D #0D401C #0D1740
split-complementary
#400D31 #17400D #0D4035
monochromatic
#190513 #190513 #400D31 #731758 #A6227F

Accessibility & contrast

On white

15.91
#400D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D31
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D31#FFFFFF#000000##FFFFFF
##400D311.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111D32
Deuteranopia (green-blind)
#212530
Tritanopia (blue-blind)
#440E1D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400d31;
/* rgb */ color: rgb(64, 13, 49);
/* oklch */ color: oklch(26.4% 0.090 341.9);
Tailwind
colors: {
  custom: {
    50: '#775169',
    500: '#400d31',
    950: '#000000',
  },
}
SCSS
$custom: #400d31;
$custom-light: #775169;
$custom-dark: #000000;
JSON
{
  "hex": "#400d31",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 49
  },
  "hsl": {
    "h": 317.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26391,
    "c": 0.09036,
    "h": 341.9
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#400D31
secondary
#2D7C44
accent
#E9713F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400D31

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

Preview Lab → · Contrast checker → · Palette generator →

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