#400D34#400D34

#400D34 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.6% C 0.093 H 338.8°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#400D34
RGBrgb(64, 13, 52)
HSLhsl(314, 66%, 15%)
HSVhsv(314, 80%, 25%)
CMYKcmyk(0%, 79.7%, 18.8%, 74.9%)
CIE-LABlab(13.39, 29.18, -12.38)
CIE-LCHlch(13.39, 31.69, 337.01°)
OKLaboklab(26.56% 0.0865 -0.0335)
OKLCHoklch(26.56% 0.093 338.8)
XYZxyz(2.8782, 1.6260, 3.4104)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D34 #0D4019
analogous
#330D40 #400D34 #400D1A
triadic
#400D34 #34400D #0D3440
tetradic
#400D34 #40330D #0D4019 #0D1A40
square
#400D34 #40330D #0D4019 #0D1A40
split-complementary
#400D34 #1A400D #0D4033
monochromatic
#190515 #190515 #400D34 #73175D #A62287

Accessibility & contrast

On white

15.85
#400D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D34
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D34#FFFFFF#000000##FFFFFF
##400D341.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101D35
Deuteranopia (green-blind)
#202533
Tritanopia (blue-blind)
#440F1F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400d34;
/* rgb */ color: rgb(64, 13, 52);
/* oklch */ color: oklch(26.6% 0.093 338.8);
Tailwind
colors: {
  custom: {
    50: '#77516b',
    500: '#400d34',
    950: '#000000',
  },
}
SCSS
$custom: #400d34;
$custom-light: #77516b;
$custom-dark: #000000;
JSON
{
  "hex": "#400d34",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 52
  },
  "hsl": {
    "h": 314.118,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26558,
    "c": 0.09274,
    "h": 338.8
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#400D34
secondary
#2D7C40
accent
#E9673F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400D34

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

Preview Lab → · Contrast checker → · Palette generator →

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