#403140#403140

#403140 is a dark, muted purple. Relative luminance 0.037; OKLCH L 33.6% C 0.033 H 326.3°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#403140
RGBrgb(64, 49, 64)
HSLhsl(300, 13%, 22%)
HSVhsv(300, 23%, 25%)
CMYKcmyk(0%, 23.4%, 0%, 74.9%)
CIE-LABlab(22.50, 9.93, -6.81)
CIE-LCHlch(22.50, 12.04, 325.56°)
OKLaboklab(33.58% 0.0274 -0.0183)
OKLCHoklch(33.58% 0.033 326.3)
XYZxyz(4.1380, 3.6569, 5.3374)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403140 #314031
analogous
#393140 #403140 #403139
triadic
#403140 #404031 #314040
tetradic
#403140 #403931 #314031 #313940
square
#403140 #403931 #314031 #313940
split-complementary
#403140 #394031 #314039
monochromatic
#110D11 #1D161D #403140 #634C63 #856685

Accessibility & contrast

On white

12.13
#403140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#403140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403140
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403140#FFFFFF#000000##FFFFFF
##4031401.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303541
Deuteranopia (green-blind)
#33363F
Tritanopia (blue-blind)
#413236
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #403140;
/* rgb */ color: rgb(64, 49, 64);
/* oklch */ color: oklch(33.6% 0.033 326.3);
Tailwind
colors: {
  custom: {
    50: '#756974',
    500: '#403140',
    950: '#000000',
  },
}
SCSS
$custom: #403140;
$custom-light: #756974;
$custom-dark: #000000;
JSON
{
  "hex": "#403140",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33578,
    "c": 0.03294,
    "h": 326.3
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#403140
secondary
#5D705D
accent
#B67272
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #403140

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

Preview Lab → · Contrast checker → · Palette generator →

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