#400D2E#400D2E

#400D2E is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.2% C 0.088 H 345.2°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#400D2E
RGBrgb(64, 13, 46)
HSLhsl(321, 66%, 15%)
HSVhsv(321, 80%, 25%)
CMYKcmyk(0%, 79.7%, 28.1%, 74.9%)
CIE-LABlab(13.08, 28.18, -8.50)
CIE-LCHlch(13.08, 29.43, 343.22°)
OKLaboklab(26.23% 0.0852 -0.0226)
OKLCHoklch(26.23% 0.088 345.2)
XYZxyz(2.7515, 1.5754, 2.7434)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D2E #0D401F
analogous
#380D40 #400D2E #400D15
triadic
#400D2E #2E400D #0D2E40
tetradic
#400D2E #40380D #0D401F #0D1540
square
#400D2E #40380D #0D401F #0D1540
split-complementary
#400D2E #15400D #0D4038
monochromatic
#190512 #190512 #400D2E #731753 #A62277

Accessibility & contrast

On white

15.97
#400D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D2E
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D2E#FFFFFF#000000##FFFFFF
##400D2E1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131C2F
Deuteranopia (green-blind)
#22252D
Tritanopia (blue-blind)
#450C1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400d2e;
/* rgb */ color: rgb(64, 13, 46);
/* oklch */ color: oklch(26.2% 0.088 345.2);
Tailwind
colors: {
  custom: {
    50: '#775166',
    500: '#400d2e',
    950: '#000000',
  },
}
SCSS
$custom: #400d2e;
$custom-light: #775166;
$custom-dark: #000000;
JSON
{
  "hex": "#400d2e",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 46
  },
  "hsl": {
    "h": 321.176,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26233,
    "c": 0.08813,
    "h": 345.2
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#400D2E
secondary
#2D7C49
accent
#E97B3F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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