#402A3E#402A3E

#402A3E is a dark, muted purple. Relative luminance 0.031; OKLCH L 32.0% C 0.046 H 329.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#402A3E
RGBrgb(64, 42, 62)
HSLhsl(305, 21%, 21%)
HSVhsv(305, 34%, 25%)
CMYKcmyk(0%, 34.4%, 3.1%, 74.9%)
CIE-LABlab(20.42, 14.18, -8.61)
CIE-LCHlch(20.42, 16.59, 328.74°)
OKLaboklab(31.95% 0.0398 -0.0232)
OKLCHoklch(31.95% 0.046 329.7)
XYZxyz(3.8118, 3.0939, 4.9529)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A3E #2A402C
analogous
#372A40 #402A3E #402A33
triadic
#402A3E #3E402A #2A3E40
tetradic
#402A3E #40372A #2A402C #2A3340
square
#402A3E #40372A #2A402C #2A3340
split-complementary
#402A3E #33402A #2A4037
monochromatic
#120C12 #1B121A #402A3E #654262 #8A5A86

Accessibility & contrast

On white

12.97
#402A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A3E
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A3E#FFFFFF#000000##FFFFFF
##402A3E1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292F3F
Deuteranopia (green-blind)
#2E323D
Tritanopia (blue-blind)
#422B31
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402a3e;
/* rgb */ color: rgb(64, 42, 62);
/* oklch */ color: oklch(32.0% 0.046 329.7);
Tailwind
colors: {
  custom: {
    50: '#756473',
    500: '#402a3e',
    950: '#000000',
  },
}
SCSS
$custom: #402a3e;
$custom-light: #756473;
$custom-dark: #000000;
JSON
{
  "hex": "#402a3e",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 62
  },
  "hsl": {
    "h": 305.455,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31953,
    "c": 0.04604,
    "h": 329.7
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#402A3E
secondary
#557157
accent
#BD726A
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080508
muted
#7B797B

Preview Lab

Preview with #402A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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