#400D2F#400D2F

#400D2F is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.089 H 344.1°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#400D2F
RGBrgb(64, 13, 47)
HSLhsl(320, 66%, 15%)
HSVhsv(320, 80%, 25%)
CMYKcmyk(0%, 79.7%, 26.6%, 74.9%)
CIE-LABlab(13.13, 28.34, -9.15)
CIE-LCHlch(13.13, 29.78, 342.11°)
OKLaboklab(26.28% 0.0854 -0.0244)
OKLCHoklch(26.28% 0.089 344.1)
XYZxyz(2.7715, 1.5834, 2.8484)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D2F #0D401E
analogous
#370D40 #400D2F #400D15
triadic
#400D2F #2F400D #0D2F40
tetradic
#400D2F #40370D #0D401E #0D1540
square
#400D2F #40370D #0D401E #0D1540
split-complementary
#400D2F #15400D #0D4037
monochromatic
#190513 #190513 #400D2F #731754 #A6227A

Accessibility & contrast

On white

15.95
#400D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D2F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D2F#FFFFFF#000000##FFFFFF
##400D2F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121C30
Deuteranopia (green-blind)
#22252E
Tritanopia (blue-blind)
#450D1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400d2f;
/* rgb */ color: rgb(64, 13, 47);
/* oklch */ color: oklch(26.3% 0.089 344.1);
Tailwind
colors: {
  custom: {
    50: '#775167',
    500: '#400d2f',
    950: '#000000',
  },
}
SCSS
$custom: #400d2f;
$custom-light: #775167;
$custom-dark: #000000;
JSON
{
  "hex": "#400d2f",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 320,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26285,
    "c": 0.08886,
    "h": 344.1
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#400D2F
secondary
#2D7C47
accent
#E9773F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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