#403D4F#403D4F

#403D4F is a dark, muted violet. Relative luminance 0.050; OKLCH L 37.0% C 0.031 H 292.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#403D4F
RGBrgb(64, 61, 79)
HSLhsl(250, 13%, 27%)
HSVhsv(250, 23%, 31%)
CMYKcmyk(19%, 22.8%, 0%, 69%)
CIE-LABlab(26.71, 5.64, -10.42)
CIE-LCHlch(26.71, 11.85, 298.41°)
OKLaboklab(37.03% 0.0118 -0.0284)
OKLCHoklch(37.03% 0.031 292.5)
XYZxyz(5.1941, 4.9919, 8.0855)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D4F #4C4F3D
analogous
#3D434F #403D4F #493D4F
triadic
#403D4F #4F403D #3D4F40
tetradic
#403D4F #4F3D43 #4C4F3D #3D4F49
square
#403D4F #4F3D43 #4C4F3D #3D4F49
split-complementary
#403D4F #4F493D #434F3D
monochromatic
#0E0D11 #24222C #403D4F #5C5872 #797393

Accessibility & contrast

On white

10.51
#403D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#403D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D4F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D4F#FFFFFF#000000##FFFFFF
##403D4F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393F50
Deuteranopia (green-blind)
#393F4E
Tritanopia (blue-blind)
#3D4043
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403d4f;
/* rgb */ color: rgb(64, 61, 79);
/* oklch */ color: oklch(37.0% 0.031 292.5);
Tailwind
colors: {
  custom: {
    50: '#757280',
    500: '#403d4f',
    950: '#000000',
  },
}
SCSS
$custom: #403d4f;
$custom-light: #757280;
$custom-dark: #000000;
JSON
{
  "hex": "#403d4f",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 79
  },
  "hsl": {
    "h": 250,
    "s": 12.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37033,
    "c": 0.03078,
    "h": 292.5
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#403D4F
secondary
#7B7E69
accent
#B672AA
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #403D4F

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

Preview Lab → · Contrast checker → · Palette generator →

#403D4F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva