#402E46#402E46

#402E46 is a dark, muted purple. Relative luminance 0.035; OKLCH L 33.2% C 0.048 H 317.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#402E46
RGBrgb(64, 46, 70)
HSLhsl(285, 21%, 23%)
HSVhsv(285, 34%, 27%)
CMYKcmyk(8.6%, 34.3%, 0%, 72.5%)
CIE-LABlab(21.89, 13.38, -11.79)
CIE-LCHlch(21.89, 17.84, 318.61°)
OKLaboklab(33.2% 0.0351 -0.0322)
OKLCHoklch(33.2% 0.048 317.5)
XYZxyz(4.1967, 3.4863, 6.2450)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E46 #34462E
analogous
#342E46 #402E46 #462E40
triadic
#402E46 #46402E #2E4640
tetradic
#402E46 #46342E #34462E #2E4046
square
#402E46 #46342E #34462E #2E4046
split-complementary
#402E46 #40462E #2E4634
monochromatic
#110C12 #1E1621 #402E46 #62466B #845F90

Accessibility & contrast

On white

12.37
#402E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#402E46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E46
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E46#FFFFFF#000000##FFFFFF
##402E461.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3347
Deuteranopia (green-blind)
#2F3545
Tritanopia (blue-blind)
#403137
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #402e46;
/* rgb */ color: rgb(64, 46, 70);
/* oklch */ color: oklch(33.2% 0.048 317.5);
Tailwind
colors: {
  custom: {
    50: '#756779',
    500: '#402e46',
    950: '#000000',
  },
}
SCSS
$custom: #402e46;
$custom-light: #756779;
$custom-dark: #000000;
JSON
{
  "hex": "#402e46",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 70
  },
  "hsl": {
    "h": 285,
    "s": 20.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33197,
    "c": 0.04763,
    "h": 317.5
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#402E46
secondary
#607759
accent
#BD6B7F
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #402E46

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

Preview Lab → · Contrast checker → · Palette generator →

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