#402136#402136

#402136 is a dark, muted pink. Relative luminance 0.024; OKLCH L 29.8% C 0.057 H 340.3°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#402136
RGBrgb(64, 33, 54)
HSLhsl(319, 32%, 19%)
HSVhsv(319, 48%, 25%)
CMYKcmyk(0%, 48.4%, 15.6%, 74.9%)
CIE-LABlab(17.66, 18.40, -7.24)
CIE-LCHlch(17.66, 19.78, 338.54°)
OKLaboklab(29.76% 0.054 -0.0193)
OKLCHoklch(29.76% 0.057 340.3)
XYZxyz(3.3241, 2.4443, 3.7860)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402136 #21402B
analogous
#3B2140 #402136 #402127
triadic
#402136 #364021 #213640
tetradic
#402136 #403B21 #21402B #212740
square
#402136 #403B21 #21402B #212740
split-complementary
#402136 #274021 #21403B
monochromatic
#140A11 #180C14 #402136 #683658 #914B7A

Accessibility & contrast

On white

14.11
#402136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#402136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402136
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402136#FFFFFF#000000##FFFFFF
##4021361.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222837
Deuteranopia (green-blind)
#2A2D35
Tritanopia (blue-blind)
#432129
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402136;
/* rgb */ color: rgb(64, 33, 54);
/* oklch */ color: oklch(29.8% 0.057 340.3);
Tailwind
colors: {
  custom: {
    50: '#765d6d',
    500: '#402136',
    950: '#000000',
  },
}
SCSS
$custom: #402136;
$custom-light: #765d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#402136",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 54
  },
  "hsl": {
    "h": 319.355,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29756,
    "c": 0.05729,
    "h": 340.3
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#402136
secondary
#497457
accent
#C88160
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080407
muted
#7B797A

Preview Lab

Preview with #402136

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

Preview Lab → · Contrast checker → · Palette generator →

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