#400D2A#400D2A

#400D2A is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.0% C 0.085 H 349.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#400D2A
RGBrgb(64, 13, 42)
HSLhsl(326, 66%, 15%)
HSVhsv(326, 80%, 25%)
CMYKcmyk(0%, 79.7%, 34.4%, 74.9%)
CIE-LABlab(12.89, 27.57, -5.85)
CIE-LCHlch(12.89, 28.19, 348.03°)
OKLaboklab(26.04% 0.0841 -0.0153)
OKLCHoklch(26.04% 0.085 349.7)
XYZxyz(2.6763, 1.5453, 2.3474)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D2A #0D4023
analogous
#3C0D40 #400D2A #400D11
triadic
#400D2A #2A400D #0D2A40
tetradic
#400D2A #403C0D #0D4023 #0D1140
square
#400D2A #403C0D #0D4023 #0D1140
split-complementary
#400D2A #11400D #0D403C
monochromatic
#190511 #190511 #400D2A #73174B #A6226D

Accessibility & contrast

On white

16.04
#400D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400D2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D2A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D2A#FFFFFF#000000##FFFFFF
##400D2A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151C2B
Deuteranopia (green-blind)
#232529
Tritanopia (blue-blind)
#450A1A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400d2a;
/* rgb */ color: rgb(64, 13, 42);
/* oklch */ color: oklch(26.0% 0.085 349.7);
Tailwind
colors: {
  custom: {
    50: '#775163',
    500: '#400d2a',
    950: '#000000',
  },
}
SCSS
$custom: #400d2a;
$custom-light: #775163;
$custom-dark: #000000;
JSON
{
  "hex": "#400d2a",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 42
  },
  "hsl": {
    "h": 325.882,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26036,
    "c": 0.08544,
    "h": 349.7
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#400D2A
secondary
#2D7C4F
accent
#E9883F
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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