#402C46#402C46

#402C46 is a dark, muted purple. Relative luminance 0.033; OKLCH L 32.8% C 0.052 H 318.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#402C46
RGBrgb(64, 44, 70)
HSLhsl(286, 23%, 22%)
HSVhsv(286, 37%, 27%)
CMYKcmyk(8.6%, 37.1%, 0%, 72.5%)
CIE-LABlab(21.33, 14.73, -12.66)
CIE-LCHlch(21.33, 19.42, 319.32°)
OKLaboklab(32.77% 0.0388 -0.0346)
OKLCHoklch(32.77% 0.052 318.2)
XYZxyz(4.1204, 3.3336, 6.2196)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C46 #32462C
analogous
#332C46 #402C46 #462C3F
triadic
#402C46 #46402C #2C4640
tetradic
#402C46 #46332C #32462C #2C3F46
square
#402C46 #46332C #32462C #2C3F46
split-complementary
#402C46 #3F462C #2C4633
monochromatic
#110C13 #1E1420 #402C46 #62446C #855B91

Accessibility & contrast

On white

12.60
#402C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#402C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C46
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C46#FFFFFF#000000##FFFFFF
##402C461.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293247
Deuteranopia (green-blind)
#2D3445
Tritanopia (blue-blind)
#402F36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402c46;
/* rgb */ color: rgb(64, 44, 70);
/* oklch */ color: oklch(32.8% 0.052 318.2);
Tailwind
colors: {
  custom: {
    50: '#756579',
    500: '#402c46',
    950: '#000000',
  },
}
SCSS
$custom: #402c46;
$custom-light: #756579;
$custom-dark: #000000;
JSON
{
  "hex": "#402c46",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 70
  },
  "hsl": {
    "h": 286.154,
    "s": 22.807,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3277,
    "c": 0.05195,
    "h": 318.2
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#402C46
secondary
#5E7756
accent
#BF687D
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080509
muted
#7B7A7B

Preview Lab

Preview with #402C46

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

Preview Lab → · Contrast checker → · Palette generator →

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