#402434#402434

#402434 is a dark, muted pink. Relative luminance 0.026; OKLCH L 30.3% C 0.049 H 345.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#402434
RGBrgb(64, 36, 52)
HSLhsl(326, 28%, 20%)
HSVhsv(326, 44%, 25%)
CMYKcmyk(0%, 43.8%, 18.8%, 74.9%)
CIE-LABlab(18.36, 16.06, -4.78)
CIE-LCHlch(18.36, 16.75, 343.42°)
OKLaboklab(30.26% 0.0475 -0.0126)
OKLCHoklch(30.26% 0.049 345.1)
XYZxyz(3.3651, 2.5999, 3.5727)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402434 #244030
analogous
#3E2440 #402434 #402426
triadic
#402434 #344024 #243440
tetradic
#402434 #403E24 #244030 #242640
square
#402434 #403E24 #244030 #242640
split-complementary
#402434 #264024 #24403E
monochromatic
#140B10 #190E14 #402434 #673A54 #8E5074

Accessibility & contrast

On white

13.82
#402434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#402434 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402434
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402434#FFFFFF#000000##FFFFFF
##4024341.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262A35
Deuteranopia (green-blind)
#2D2E33
Tritanopia (blue-blind)
#43242A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402434;
/* rgb */ color: rgb(64, 36, 52);
/* oklch */ color: oklch(30.3% 0.049 345.1);
Tailwind
colors: {
  custom: {
    50: '#755f6b',
    500: '#402434',
    950: '#000000',
  },
}
SCSS
$custom: #402434;
$custom-light: #755f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#402434",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 52
  },
  "hsl": {
    "h": 325.714,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30257,
    "c": 0.04912,
    "h": 345.1
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#402434
secondary
#4D735D
accent
#C48D63
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080406
muted
#7B797A

Preview Lab

Preview with #402434

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

Preview Lab → · Contrast checker → · Palette generator →

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