#402238#402238

#402238 is a dark, muted pink. Relative luminance 0.025; OKLCH L 30.0% C 0.057 H 337.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#402238
RGBrgb(64, 34, 56)
HSLhsl(316, 31%, 19%)
HSVhsv(316, 47%, 25%)
CMYKcmyk(0%, 46.9%, 12.5%, 74.9%)
CIE-LABlab(18.01, 18.16, -8.12)
CIE-LCHlch(18.01, 19.89, 335.92°)
OKLaboklab(30.04% 0.0528 -0.0217)
OKLCHoklch(30.04% 0.057 337.6)
XYZxyz(3.4002, 2.5198, 4.0479)
Luminance0.0252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402238 #22402A
analogous
#392240 #402238 #402229
triadic
#402238 #384022 #223840
tetradic
#402238 #403922 #22402A #222940
square
#402238 #403922 #22402A #222940
split-complementary
#402238 #294022 #224039
monochromatic
#140B11 #180D15 #402238 #68375B #904C7E

Accessibility & contrast

On white

13.96
#402238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402238
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402238#FFFFFF#000000##FFFFFF
##4022381.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232939
Deuteranopia (green-blind)
#2A2E37
Tritanopia (blue-blind)
#43232A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #402238;
/* rgb */ color: rgb(64, 34, 56);
/* oklch */ color: oklch(30.0% 0.057 337.6);
Tailwind
colors: {
  custom: {
    50: '#755e6e',
    500: '#402238',
    950: '#000000',
  },
}
SCSS
$custom: #402238;
$custom-light: #755e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#402238",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 316,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30043,
    "c": 0.05706,
    "h": 337.6
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#402238
secondary
#4B7355
accent
#C77C61
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080407
muted
#7B797A

Preview Lab

Preview with #402238

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

Preview Lab → · Contrast checker → · Palette generator →

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