#402E34#402E34

#402E34 is a dark, muted pink. Relative luminance 0.033; OKLCH L 32.4% C 0.028 H 357.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#402E34
RGBrgb(64, 46, 52)
HSLhsl(340, 16%, 22%)
HSVhsv(340, 28%, 25%)
CMYKcmyk(0%, 28.1%, 18.8%, 74.9%)
CIE-LABlab(21.18, 9.38, -0.61)
CIE-LCHlch(21.18, 9.40, 356.27°)
OKLaboklab(32.41% 0.028 -0.0015)
OKLCHoklch(32.41% 0.028 357)
XYZxyz(3.7112, 3.2921, 3.6881)
Luminance0.0329 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E34 #2E403A
analogous
#402E3D #402E34 #40312E
triadic
#402E34 #34402E #2E3440
tetradic
#402E34 #3D402E #2E403A #312E40
square
#402E34 #3D402E #2E403A #312E40
split-complementary
#402E34 #2E4031 #2E3D40
monochromatic
#120D0E #1C1417 #402E34 #644851 #87616E

Accessibility & contrast

On white

12.66
#402E34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#402E34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E34
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E34#FFFFFF#000000##FFFFFF
##402E341.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303134
Deuteranopia (green-blind)
#343434
Tritanopia (blue-blind)
#432D30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402e34;
/* rgb */ color: rgb(64, 46, 52);
/* oklch */ color: oklch(32.4% 0.028 357.0);
Tailwind
colors: {
  custom: {
    50: '#75666b',
    500: '#402e34',
    950: '#000000',
  },
}
SCSS
$custom: #402e34;
$custom-light: #75666b;
$custom-dark: #000000;
JSON
{
  "hex": "#402e34",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 52
  },
  "hsl": {
    "h": 340,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3241,
    "c": 0.02804,
    "h": 357
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#402E34
secondary
#597069
accent
#B9A06F
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080606
muted
#7B7A7A

Preview Lab

Preview with #402E34

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

Preview Lab → · Contrast checker → · Palette generator →

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