#403040#403040

#403040 is a dark, muted purple. Relative luminance 0.036; OKLCH L 33.4% C 0.035 H 326.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#403040
RGBrgb(64, 48, 64)
HSLhsl(300, 14%, 22%)
HSVhsv(300, 25%, 25%)
CMYKcmyk(0%, 25%, 0%, 74.9%)
CIE-LABlab(22.21, 10.61, -7.25)
CIE-LCHlch(22.21, 12.85, 325.63°)
OKLaboklab(33.35% 0.0293 -0.0195)
OKLCHoklch(33.35% 0.035 326.3)
XYZxyz(4.0966, 3.5742, 5.3236)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403040 #304030
analogous
#383040 #403040 #403038
triadic
#403040 #404030 #304040
tetradic
#403040 #403830 #304030 #303840
square
#403040 #403830 #304030 #303840
split-complementary
#403040 #384030 #304038
monochromatic
#110D11 #1D161D #403040 #634A63 #866486

Accessibility & contrast

On white

12.25
#403040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#403040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403040
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403040#FFFFFF#000000##FFFFFF
##4030401.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3441
Deuteranopia (green-blind)
#33363F
Tritanopia (blue-blind)
#413136
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #403040;
/* rgb */ color: rgb(64, 48, 64);
/* oklch */ color: oklch(33.4% 0.035 326.3);
Tailwind
colors: {
  custom: {
    50: '#756874',
    500: '#403040',
    950: '#000000',
  },
}
SCSS
$custom: #403040;
$custom-light: #756874;
$custom-dark: #000000;
JSON
{
  "hex": "#403040",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 14.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33353,
    "c": 0.03517,
    "h": 326.3
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#403040
secondary
#5C705C
accent
#B77171
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #403040

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

Preview Lab → · Contrast checker → · Palette generator →

#403040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva