#400D36#400D36

#400D36 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.7% C 0.094 H 336.9°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#400D36
RGBrgb(64, 13, 54)
HSLhsl(312, 66%, 15%)
HSVhsv(312, 80%, 25%)
CMYKcmyk(0%, 79.7%, 15.6%, 74.9%)
CIE-LABlab(13.50, 29.53, -13.64)
CIE-LCHlch(13.50, 32.53, 335.20°)
OKLaboklab(26.67% 0.0868 -0.0371)
OKLCHoklch(26.67% 0.094 336.9)
XYZxyz(2.9242, 1.6444, 3.6527)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D36 #0D4017
analogous
#310D40 #400D36 #400D1C
triadic
#400D36 #36400D #0D3640
tetradic
#400D36 #40310D #0D4017 #0D1C40
square
#400D36 #40310D #0D4017 #0D1C40
split-complementary
#400D36 #1C400D #0D4031
monochromatic
#190515 #190515 #400D36 #731761 #A6228C

Accessibility & contrast

On white

15.80
#400D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400D36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D36
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D36#FFFFFF#000000##FFFFFF
##400D361.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1E37
Deuteranopia (green-blind)
#1F2535
Tritanopia (blue-blind)
#441020
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400d36;
/* rgb */ color: rgb(64, 13, 54);
/* oklch */ color: oklch(26.7% 0.094 336.9);
Tailwind
colors: {
  custom: {
    50: '#77516d',
    500: '#400d36',
    950: '#000000',
  },
}
SCSS
$custom: #400d36;
$custom-light: #77516d;
$custom-dark: #000000;
JSON
{
  "hex": "#400d36",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 54
  },
  "hsl": {
    "h": 311.765,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26674,
    "c": 0.0944,
    "h": 336.9
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#400D36
secondary
#2D7C3D
accent
#E9603F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400D36

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

Preview Lab → · Contrast checker → · Palette generator →

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