#402A3A#402A3A

#402A3A is a dark, muted pink. Relative luminance 0.031; OKLCH L 31.8% C 0.042 H 336.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#402A3A
RGBrgb(64, 42, 58)
HSLhsl(316, 21%, 21%)
HSVhsv(316, 34%, 25%)
CMYKcmyk(0%, 34.4%, 9.4%, 74.9%)
CIE-LABlab(20.25, 13.30, -6.11)
CIE-LCHlch(20.25, 14.64, 335.32°)
OKLaboklab(31.77% 0.0383 -0.0163)
OKLCHoklch(31.77% 0.042 336.9)
XYZxyz(3.7060, 3.0516, 4.3960)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A3A #2A4030
analogous
#3B2A40 #402A3A #402A2F
triadic
#402A3A #3A402A #2A3A40
tetradic
#402A3A #403B2A #2A4030 #2A2F40
square
#402A3A #403B2A #2A4030 #2A2F40
split-complementary
#402A3A #2F402A #2A403B
monochromatic
#120C11 #1B1219 #402A3A #65425B #8A5A7D

Accessibility & contrast

On white

13.04
#402A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402A3A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A3A#FFFFFF#000000##FFFFFF
##402A3A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402a3a;
/* rgb */ color: rgb(64, 42, 58);
/* oklch */ color: oklch(31.8% 0.042 336.9);
Tailwind
colors: {
  custom: {
    50: '#756370',
    500: '#402a3a',
    950: '#000000',
  },
}
SCSS
$custom: #402a3a;
$custom-light: #756370;
$custom-dark: #000000;
JSON
{
  "hex": "#402a3a",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 58
  },
  "hsl": {
    "h": 316.364,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31771,
    "c": 0.0416,
    "h": 336.9
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#402A3A
secondary
#55715C
accent
#BD816A
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080507
muted
#7B797A

Preview Lab

Preview with #402A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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