#402A34#402A34

#402A34 is a dark, muted pink. Relative luminance 0.030; OKLCH L 31.5% C 0.036 H 350.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#402A34
RGBrgb(64, 42, 52)
HSLhsl(333, 21%, 21%)
HSVhsv(333, 34%, 25%)
CMYKcmyk(0%, 34.4%, 18.8%, 74.9%)
CIE-LABlab(20.02, 12.07, -2.32)
CIE-LCHlch(20.02, 12.29, 349.14°)
OKLaboklab(31.52% 0.0358 -0.006)
OKLCHoklch(31.52% 0.036 350.5)
XYZxyz(3.5622, 2.9940, 3.6384)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A34 #2A4036
analogous
#402A3F #402A34 #402B2A
triadic
#402A34 #34402A #2A3440
tetradic
#402A34 #3F402A #2A4036 #2B2A40
square
#402A34 #3F402A #2A4036 #2B2A40
split-complementary
#402A34 #2A402B #2A3F40
monochromatic
#120C0F #1B1216 #402A34 #654252 #8A5A70

Accessibility & contrast

On white

13.13
#402A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402A34
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A34#FFFFFF#000000##FFFFFF
##402A341.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2E34
Deuteranopia (green-blind)
#313233
Tritanopia (blue-blind)
#43292D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402a34;
/* rgb */ color: rgb(64, 42, 52);
/* oklch */ color: oklch(31.5% 0.036 350.5);
Tailwind
colors: {
  custom: {
    50: '#75636b',
    500: '#402a34',
    950: '#000000',
  },
}
SCSS
$custom: #402a34;
$custom-light: #75636b;
$custom-dark: #000000;
JSON
{
  "hex": "#402a34",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 52
  },
  "hsl": {
    "h": 332.727,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3152,
    "c": 0.03631,
    "h": 350.5
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#402A34
secondary
#557164
accent
#BD986A
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080506
muted
#7B797A

Preview Lab

Preview with #402A34

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

Preview Lab → · Contrast checker → · Palette generator →

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