#402A44#402A44

#402A44 is a dark, muted purple. Relative luminance 0.032; OKLCH L 32.2% C 0.054 H 321.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#402A44
RGBrgb(64, 42, 68)
HSLhsl(291, 24%, 22%)
HSVhsv(291, 38%, 27%)
CMYKcmyk(5.9%, 38.2%, 0%, 73.3%)
CIE-LABlab(20.69, 15.58, -12.29)
CIE-LCHlch(20.69, 19.84, 321.72°)
OKLaboklab(32.25% 0.0418 -0.0336)
OKLCHoklch(32.25% 0.054 321.2)
XYZxyz(3.9856, 3.1634, 5.8684)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A44 #2E442A
analogous
#332A44 #402A44 #442A3B
triadic
#402A44 #44402A #2A4440
tetradic
#402A44 #44332A #2E442A #2A3B44
square
#402A44 #44332A #2E442A #2A3B44
split-complementary
#402A44 #3B442A #2A4433
monochromatic
#120C13 #1C131E #402A44 #64416A #875990

Accessibility & contrast

On white

12.86
#402A44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402A44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A44
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A44#FFFFFF#000000##FFFFFF
##402A441.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273045
Deuteranopia (green-blind)
#2C3343
Tritanopia (blue-blind)
#412D34
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402a44;
/* rgb */ color: rgb(64, 42, 68);
/* oklch */ color: oklch(32.2% 0.054 321.2);
Tailwind
colors: {
  custom: {
    50: '#756478',
    500: '#402a44',
    950: '#000000',
  },
}
SCSS
$custom: #402a44;
$custom-light: #756478;
$custom-dark: #000000;
JSON
{
  "hex": "#402a44",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 68
  },
  "hsl": {
    "h": 290.769,
    "s": 23.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32248,
    "c": 0.05358,
    "h": 321.2
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#402A44
secondary
#597654
accent
#C06875
background
#F7F5F7
surface
#EDEAED
border
#C8C6C8
text
#080508
muted
#7B797B

Preview Lab

Preview with #402A44

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

Preview Lab → · Contrast checker → · Palette generator →

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