#403640#403640

#403640 is a dark, muted purple. Relative luminance 0.041; OKLCH L 34.7% C 0.022 H 326.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#403640
RGBrgb(64, 54, 64)
HSLhsl(300, 8%, 23%)
HSVhsv(300, 16%, 25%)
CMYKcmyk(0%, 15.6%, 0%, 74.9%)
CIE-LABlab(23.99, 6.58, -4.57)
CIE-LCHlch(23.99, 8.01, 325.19°)
OKLaboklab(34.73% 0.0181 -0.0122)
OKLCHoklch(34.73% 0.022 326)
XYZxyz(4.3588, 4.0986, 5.4110)
Luminance0.0410 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403640 #364036
analogous
#3B3640 #403640 #40363B
triadic
#403640 #404036 #364040
tetradic
#403640 #403B36 #364036 #363B40
square
#403640 #403B36 #364036 #363B40
split-complementary
#403640 #3B4036 #36403B
monochromatic
#110E11 #1F1A1F #403640 #615261 #826E82

Accessibility & contrast

On white

11.54
#403640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#403640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403640
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403640#FFFFFF#000000##FFFFFF
##4036401.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353840
Deuteranopia (green-blind)
#383940
Tritanopia (blue-blind)
#413739
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403640;
/* rgb */ color: rgb(64, 54, 64);
/* oklch */ color: oklch(34.7% 0.022 326.0);
Tailwind
colors: {
  custom: {
    50: '#746d74',
    500: '#403640',
    950: '#000000',
  },
}
SCSS
$custom: #403640;
$custom-light: #746d74;
$custom-dark: #000000;
JSON
{
  "hex": "#403640",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 8.475,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.02185,
    "h": 326
  },
  "luminance": 0.04098
}

Semantic roles & 50–950 ramp

primary
#403640
secondary
#636F63
accent
#B17676
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080708
muted
#7B7A7B

Preview Lab

Preview with #403640

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

Preview Lab → · Contrast checker → · Palette generator →

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