#402034#402034

#402034 is a dark, muted pink. Relative luminance 0.024; OKLCH L 29.5% C 0.058 H 343.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#402034
RGBrgb(64, 32, 52)
HSLhsl(323, 33%, 19%)
HSVhsv(323, 50%, 25%)
CMYKcmyk(0%, 50%, 18.8%, 74.9%)
CIE-LABlab(17.33, 18.65, -6.34)
CIE-LCHlch(17.33, 19.70, 341.22°)
OKLaboklab(29.47% 0.0551 -0.0168)
OKLCHoklch(29.47% 0.058 343)
XYZxyz(3.2507, 2.3712, 3.5346)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402034 #20402C
analogous
#3C2040 #402034 #402024
triadic
#402034 #344020 #203440
tetradic
#402034 #403C20 #20402C #202440
square
#402034 #403C20 #20402C #202440
split-complementary
#402034 #244020 #20403C
monochromatic
#140A11 #170C13 #402034 #693455 #924976

Accessibility & contrast

On white

14.25
#402034 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#402034 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402034
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402034#FFFFFF#000000##FFFFFF
##4020341.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222735
Deuteranopia (green-blind)
#2A2C33
Tritanopia (blue-blind)
#442027
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402034;
/* rgb */ color: rgb(64, 32, 52);
/* oklch */ color: oklch(29.5% 0.058 343.0);
Tailwind
colors: {
  custom: {
    50: '#765c6b',
    500: '#402034',
    950: '#000000',
  },
}
SCSS
$custom: #402034;
$custom-light: #765c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#402034",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 52
  },
  "hsl": {
    "h": 322.5,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29473,
    "c": 0.05763,
    "h": 343
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#402034
secondary
#487458
accent
#C9875E
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080406
muted
#7B797A

Preview Lab

Preview with #402034

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

Preview Lab → · Contrast checker → · Palette generator →

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