#402736#402736

#402736 is a dark, muted pink. Relative luminance 0.028; OKLCH L 31.0% C 0.044 H 343.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#402736
RGBrgb(64, 39, 54)
HSLhsl(324, 24%, 20%)
HSVhsv(324, 39%, 25%)
CMYKcmyk(0%, 39.1%, 15.6%, 74.9%)
CIE-LABlab(19.26, 14.47, -4.84)
CIE-LCHlch(19.26, 15.26, 341.51°)
OKLaboklab(30.96% 0.0425 -0.0128)
OKLCHoklch(30.96% 0.044 343.3)
XYZxyz(3.5057, 2.8076, 3.8466)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402736 #274031
analogous
#3D2740 #402736 #402729
triadic
#402736 #364027 #273640
tetradic
#402736 #403D27 #274031 #272940
square
#402736 #403D27 #274031 #272940
split-complementary
#402736 #294027 #27403D
monochromatic
#130C10 #1A1016 #402736 #663E56 #8C5576

Accessibility & contrast

On white

13.45
#402736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#402736 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402736
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402736#FFFFFF#000000##FFFFFF
##4027361.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282C37
Deuteranopia (green-blind)
#2F3035
Tritanopia (blue-blind)
#43272C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402736;
/* rgb */ color: rgb(64, 39, 54);
/* oklch */ color: oklch(31.0% 0.044 343.3);
Tailwind
colors: {
  custom: {
    50: '#75616d',
    500: '#402736',
    950: '#000000',
  },
}
SCSS
$custom: #402736;
$custom-light: #75616d;
$custom-dark: #000000;
JSON
{
  "hex": "#402736",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 54
  },
  "hsl": {
    "h": 324,
    "s": 24.272,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30961,
    "c": 0.04435,
    "h": 343.3
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#402736
secondary
#51725E
accent
#C18B67
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402736

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

Preview Lab → · Contrast checker → · Palette generator →

#402736 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva