#402C40#402C40

#402C40 is a dark, muted purple. Relative luminance 0.033; OKLCH L 32.5% C 0.044 H 326.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#402C40
RGBrgb(64, 44, 64)
HSLhsl(300, 19%, 21%)
HSVhsv(300, 31%, 25%)
CMYKcmyk(0%, 31.2%, 0%, 74.9%)
CIE-LABlab(21.06, 13.30, -8.99)
CIE-LCHlch(21.06, 16.05, 325.93°)
OKLaboklab(32.47% 0.0367 -0.0243)
OKLCHoklch(32.47% 0.044 326.5)
XYZxyz(3.9404, 3.2616, 5.2715)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C40 #2C402C
analogous
#362C40 #402C40 #402C36
triadic
#402C40 #40402C #2C4040
tetradic
#402C40 #40362C #2C402C #2C3640
square
#402C40 #40362C #2C402C #2C3640
split-complementary
#402C40 #36402C #2C4036
monochromatic
#120C12 #1C131C #402C40 #644564 #895E89

Accessibility & contrast

On white

12.71
#402C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#402C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C40
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C40#FFFFFF#000000##FFFFFF
##402C401.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3141
Deuteranopia (green-blind)
#2F343F
Tritanopia (blue-blind)
#412E33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402c40;
/* rgb */ color: rgb(64, 44, 64);
/* oklch */ color: oklch(32.5% 0.044 326.5);
Tailwind
colors: {
  custom: {
    50: '#756574',
    500: '#402c40',
    950: '#000000',
  },
}
SCSS
$custom: #402c40;
$custom-light: #756574;
$custom-dark: #000000;
JSON
{
  "hex": "#402c40",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 18.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32474,
    "c": 0.04404,
    "h": 326.5
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#402C40
secondary
#577157
accent
#BB6D6D
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080508
muted
#7B7A7B

Preview Lab

Preview with #402C40

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

Preview Lab → · Contrast checker → · Palette generator →

#402C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva