#402A36#402A36

#402A36 is a dark, muted pink. Relative luminance 0.030; OKLCH L 31.6% C 0.038 H 345.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#402A36
RGBrgb(64, 42, 54)
HSLhsl(327, 21%, 21%)
HSVhsv(327, 34%, 25%)
CMYKcmyk(0%, 34.4%, 15.6%, 74.9%)
CIE-LABlab(20.09, 12.47, -3.59)
CIE-LCHlch(20.09, 12.97, 343.94°)
OKLaboklab(31.6% 0.0367 -0.0094)
OKLCHoklch(31.6% 0.038 345.6)
XYZxyz(3.6082, 3.0124, 3.8807)
Luminance0.0301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A36 #2A4034
analogous
#3F2A40 #402A36 #402A2B
triadic
#402A36 #36402A #2A3640
tetradic
#402A36 #403F2A #2A4034 #2A2B40
square
#402A36 #403F2A #2A4034 #2A2B40
split-complementary
#402A36 #2B402A #2A403F
monochromatic
#120C10 #1B1217 #402A36 #654255 #8A5A74

Accessibility & contrast

On white

13.11
#402A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#402A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A36
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A36#FFFFFF#000000##FFFFFF
##402A361.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2E36
Deuteranopia (green-blind)
#313235
Tritanopia (blue-blind)
#432A2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402a36;
/* rgb */ color: rgb(64, 42, 54);
/* oklch */ color: oklch(31.6% 0.038 345.6);
Tailwind
colors: {
  custom: {
    50: '#75636d',
    500: '#402a36',
    950: '#000000',
  },
}
SCSS
$custom: #402a36;
$custom-light: #75636d;
$custom-dark: #000000;
JSON
{
  "hex": "#402a36",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 54
  },
  "hsl": {
    "h": 327.273,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.316,
    "c": 0.03785,
    "h": 345.6
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#402A36
secondary
#557162
accent
#BD906A
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402A36

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

Preview Lab → · Contrast checker → · Palette generator →

#402A36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva