#402A3C#402A3C

#402A3C is a dark, muted pink. Relative luminance 0.031; OKLCH L 31.9% C 0.044 H 333.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#402A3C
RGBrgb(64, 42, 60)
HSLhsl(311, 21%, 21%)
HSVhsv(311, 34%, 25%)
CMYKcmyk(0%, 34.4%, 6.2%, 74.9%)
CIE-LABlab(20.33, 13.74, -7.36)
CIE-LCHlch(20.33, 15.59, 331.80°)
OKLaboklab(31.86% 0.039 -0.0197)
OKLCHoklch(31.86% 0.044 333.2)
XYZxyz(3.7579, 3.0723, 4.6692)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A3C #2A402E
analogous
#392A40 #402A3C #402A31
triadic
#402A3C #3C402A #2A3C40
tetradic
#402A3C #40392A #2A402E #2A3140
square
#402A3C #40392A #2A402E #2A3140
split-complementary
#402A3C #31402A #2A4039
monochromatic
#120C11 #1B1219 #402A3C #65425F #8A5A81

Accessibility & contrast

On white

13.01
#402A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402A3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A3C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A3C#FFFFFF#000000##FFFFFF
##402A3C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2F3D
Deuteranopia (green-blind)
#2F323B
Tritanopia (blue-blind)
#422B30
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402a3c;
/* rgb */ color: rgb(64, 42, 60);
/* oklch */ color: oklch(31.9% 0.044 333.2);
Tailwind
colors: {
  custom: {
    50: '#756471',
    500: '#402a3c',
    950: '#000000',
  },
}
SCSS
$custom: #402a3c;
$custom-light: #756471;
$custom-dark: #000000;
JSON
{
  "hex": "#402a3c",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 60
  },
  "hsl": {
    "h": 310.909,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3186,
    "c": 0.04375,
    "h": 333.2
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#402A3C
secondary
#55715A
accent
#BD7A6A
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080507
muted
#7B797A

Preview Lab

Preview with #402A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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