#402E41#402E41

#402E41 is a dark, muted purple. Relative luminance 0.034; OKLCH L 33.0% C 0.041 H 324.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#402E41
RGBrgb(64, 46, 65)
HSLhsl(297, 17%, 22%)
HSVhsv(297, 29%, 25%)
CMYKcmyk(1.5%, 29.2%, 0%, 74.5%)
CIE-LABlab(21.67, 12.19, -8.74)
CIE-LCHlch(21.67, 15.00, 324.34°)
OKLaboklab(32.96% 0.0334 -0.0236)
OKLCHoklch(32.96% 0.041 324.7)
XYZxyz(4.0454, 3.4257, 5.4481)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E41 #2F412E
analogous
#372E41 #402E41 #412E39
triadic
#402E41 #41402E #2E4140
tetradic
#402E41 #41372E #2F412E #2E3941
square
#402E41 #41372E #2F412E #2E3941
split-complementary
#402E41 #39412E #2E4137
monochromatic
#120D12 #1D151D #402E41 #634765 #876189

Accessibility & contrast

On white

12.46
#402E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#402E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E41
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E41#FFFFFF#000000##FFFFFF
##402E411.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3342
Deuteranopia (green-blind)
#313540
Tritanopia (blue-blind)
#413035
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #402e41;
/* rgb */ color: rgb(64, 46, 65);
/* oklch */ color: oklch(33.0% 0.041 324.7);
Tailwind
colors: {
  custom: {
    50: '#756775',
    500: '#402e41',
    950: '#000000',
  },
}
SCSS
$custom: #402e41;
$custom-light: #756775;
$custom-dark: #000000;
JSON
{
  "hex": "#402e41",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 65
  },
  "hsl": {
    "h": 296.842,
    "s": 17.117,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32955,
    "c": 0.04089,
    "h": 324.7
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#402E41
secondary
#5B7259
accent
#BA6E72
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #402E41

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

Preview Lab → · Contrast checker → · Palette generator →

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