#402C38#402C38

#402C38 is a dark, muted pink. Relative luminance 0.032; OKLCH L 32.1% C 0.035 H 342.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#402C38
RGBrgb(64, 44, 56)
HSLhsl(324, 19%, 21%)
HSVhsv(324, 31%, 25%)
CMYKcmyk(0%, 31.2%, 12.5%, 74.9%)
CIE-LABlab(20.74, 11.54, -4.00)
CIE-LCHlch(20.74, 12.21, 340.86°)
OKLaboklab(32.12% 0.0336 -0.0106)
OKLCHoklch(32.12% 0.035 342.6)
XYZxyz(3.7288, 3.1770, 4.1574)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C38 #2C4034
analogous
#3E2C40 #402C38 #402C2E
triadic
#402C38 #38402C #2C3840
tetradic
#402C38 #403E2C #2C4034 #2C2E40
square
#402C38 #403E2C #2C4034 #2C2E40
split-complementary
#402C38 #2E402C #2C403E
monochromatic
#120C10 #1C1318 #402C38 #644558 #895E77

Accessibility & contrast

On white

12.84
#402C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#402C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C38
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C38#FFFFFF#000000##FFFFFF
##402C381.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3038
Deuteranopia (green-blind)
#323337
Tritanopia (blue-blind)
#432C30
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402c38;
/* rgb */ color: rgb(64, 44, 56);
/* oklch */ color: oklch(32.1% 0.035 342.6);
Tailwind
colors: {
  custom: {
    50: '#75656e',
    500: '#402c38',
    950: '#000000',
  },
}
SCSS
$custom: #402c38;
$custom-light: #75656e;
$custom-dark: #000000;
JSON
{
  "hex": "#402c38",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 56
  },
  "hsl": {
    "h": 324,
    "s": 18.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3212,
    "c": 0.03525,
    "h": 342.6
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#402C38
secondary
#577161
accent
#BB8C6D
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080507
muted
#7B7A7A

Preview Lab

Preview with #402C38

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

Preview Lab → · Contrast checker → · Palette generator →

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