#402E3E#402E3E

#402E3E is a dark, muted purple. Relative luminance 0.034; OKLCH L 32.8% C 0.037 H 330.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#402E3E
RGBrgb(64, 46, 62)
HSLhsl(307, 16%, 22%)
HSVhsv(307, 28%, 25%)
CMYKcmyk(0%, 28.1%, 3.1%, 74.9%)
CIE-LABlab(21.55, 11.50, -6.89)
CIE-LCHlch(21.55, 13.40, 329.06°)
OKLaboklab(32.82% 0.0322 -0.0185)
OKLCHoklch(32.82% 0.037 330.2)
XYZxyz(3.9608, 3.3919, 5.0026)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E3E #2E4030
analogous
#392E40 #402E3E #402E35
triadic
#402E3E #3E402E #2E3E40
tetradic
#402E3E #40392E #2E4030 #2E3540
square
#402E3E #40392E #2E4030 #2E3540
split-complementary
#402E3E #35402E #2E4039
monochromatic
#120D11 #1C141C #402E3E #644860 #876183

Accessibility & contrast

On white

12.51
#402E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#402E3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E3E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E3E#FFFFFF#000000##FFFFFF
##402E3E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D323F
Deuteranopia (green-blind)
#32353D
Tritanopia (blue-blind)
#412F34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #402e3e;
/* rgb */ color: rgb(64, 46, 62);
/* oklch */ color: oklch(32.8% 0.037 330.2);
Tailwind
colors: {
  custom: {
    50: '#756773',
    500: '#402e3e',
    950: '#000000',
  },
}
SCSS
$custom: #402e3e;
$custom-light: #756773;
$custom-dark: #000000;
JSON
{
  "hex": "#402e3e",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 62
  },
  "hsl": {
    "h": 306.667,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32819,
    "c": 0.03716,
    "h": 330.2
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#402E3E
secondary
#59705C
accent
#B9776F
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #402E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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