#402232#402232

#402232 is a dark, muted pink. Relative luminance 0.025; OKLCH L 29.8% C 0.052 H 347.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#402232
RGBrgb(64, 34, 50)
HSLhsl(328, 31%, 19%)
HSVhsv(328, 47%, 25%)
CMYKcmyk(0%, 46.9%, 21.9%, 74.9%)
CIE-LABlab(17.76, 16.98, -4.28)
CIE-LCHlch(17.76, 17.51, 345.84°)
OKLaboklab(29.77% 0.0506 -0.0112)
OKLCHoklch(29.77% 0.052 347.5)
XYZxyz(3.2622, 2.4646, 3.3209)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402232 #224030
analogous
#3F2240 #402232 #402223
triadic
#402232 #324022 #223240
tetradic
#402232 #403F22 #224030 #222340
square
#402232 #403F22 #224030 #222340
split-complementary
#402232 #234022 #22403F
monochromatic
#140B10 #180D13 #402232 #683751 #904C70

Accessibility & contrast

On white

14.07
#402232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402232
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402232#FFFFFF#000000##FFFFFF
##4022321.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252833
Deuteranopia (green-blind)
#2C2D31
Tritanopia (blue-blind)
#442128
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402232;
/* rgb */ color: rgb(64, 34, 50);
/* oklch */ color: oklch(29.8% 0.052 347.5);
Tailwind
colors: {
  custom: {
    50: '#765e69',
    500: '#402232',
    950: '#000000',
  },
}
SCSS
$custom: #402232;
$custom-light: #765e69;
$custom-dark: #000000;
JSON
{
  "hex": "#402232",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 50
  },
  "hsl": {
    "h": 328,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29772,
    "c": 0.05178,
    "h": 347.5
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#402232
secondary
#4B735E
accent
#C79161
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080406
muted
#7B797A

Preview Lab

Preview with #402232

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

Preview Lab → · Contrast checker → · Palette generator →

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