#402836#402836

#402836 is a dark, muted pink. Relative luminance 0.029; OKLCH L 31.2% C 0.042 H 344.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#402836
RGBrgb(64, 40, 54)
HSLhsl(325, 23%, 20%)
HSVhsv(325, 38%, 25%)
CMYKcmyk(0%, 37.5%, 15.6%, 74.9%)
CIE-LABlab(19.53, 13.80, -4.43)
CIE-LCHlch(19.53, 14.50, 342.23°)
OKLaboklab(31.17% 0.0405 -0.0117)
OKLCHoklch(31.17% 0.042 344)
XYZxyz(3.5390, 2.8741, 3.8577)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402836 #284032
analogous
#3E2840 #402836 #40282A
triadic
#402836 #364028 #283640
tetradic
#402836 #403E28 #284032 #282A40
square
#402836 #403E28 #284032 #282A40
split-complementary
#402836 #2A4028 #28403E
monochromatic
#130C10 #1A1016 #402836 #664056 #8B5776

Accessibility & contrast

On white

13.34
#402836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#402836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402836
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402836#FFFFFF#000000##FFFFFF
##4028361.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292D37
Deuteranopia (green-blind)
#2F3135
Tritanopia (blue-blind)
#43282D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402836;
/* rgb */ color: rgb(64, 40, 54);
/* oklch */ color: oklch(31.2% 0.042 344.0);
Tailwind
colors: {
  custom: {
    50: '#75626d',
    500: '#402836',
    950: '#000000',
  },
}
SCSS
$custom: #402836;
$custom-light: #75626d;
$custom-dark: #000000;
JSON
{
  "hex": "#402836",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 54
  },
  "hsl": {
    "h": 325,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31172,
    "c": 0.04218,
    "h": 344
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#402836
secondary
#52725F
accent
#C08D68
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402836

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

Preview Lab → · Contrast checker → · Palette generator →

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