#402234#402234

#402234 is a dark, muted pink. Relative luminance 0.025; OKLCH L 29.9% C 0.053 H 344.0°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#402234
RGBrgb(64, 34, 52)
HSLhsl(324, 31%, 19%)
HSVhsv(324, 47%, 25%)
CMYKcmyk(0%, 46.9%, 18.8%, 74.9%)
CIE-LABlab(17.84, 17.36, -5.57)
CIE-LCHlch(17.84, 18.24, 342.21°)
OKLaboklab(29.86% 0.0513 -0.0147)
OKLCHoklch(29.86% 0.053 344)
XYZxyz(3.3062, 2.4822, 3.5531)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402234 #22402E
analogous
#3D2240 #402234 #402225
triadic
#402234 #344022 #223440
tetradic
#402234 #403D22 #22402E #222540
square
#402234 #403D22 #22402E #222540
split-complementary
#402234 #254022 #22403D
monochromatic
#140B10 #180D14 #402234 #683754 #904C75

Accessibility & contrast

On white

14.03
#402234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#402234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402234
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402234#FFFFFF#000000##FFFFFF
##4022341.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242935
Deuteranopia (green-blind)
#2C2D33
Tritanopia (blue-blind)
#442229
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #402234;
/* rgb */ color: rgb(64, 34, 52);
/* oklch */ color: oklch(29.9% 0.053 344.0);
Tailwind
colors: {
  custom: {
    50: '#765e6b',
    500: '#402234',
    950: '#000000',
  },
}
SCSS
$custom: #402234;
$custom-light: #765e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#402234",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 52
  },
  "hsl": {
    "h": 324,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29859,
    "c": 0.05339,
    "h": 344
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#402234
secondary
#4B735B
accent
#C78A61
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080406
muted
#7B797A

Preview Lab

Preview with #402234

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

Preview Lab → · Contrast checker → · Palette generator →

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