#403D4E#403D4E

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

Color values

HEX#403D4E
RGBrgb(64, 61, 78)
HSLhsl(251, 12%, 27%)
HSVhsv(251, 22%, 31%)
CMYKcmyk(17.9%, 21.8%, 0%, 69.4%)
CIE-LABlab(26.67, 5.37, -9.83)
CIE-LCHlch(26.67, 11.20, 298.67°)
OKLaboklab(36.99% 0.0114 -0.0268)
OKLCHoklch(36.99% 0.029 293)
XYZxyz(5.1579, 4.9775, 7.8953)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D4E #4B4E3D
analogous
#3D434E #403D4E #493D4E
triadic
#403D4E #4E403D #3D4E40
tetradic
#403D4E #4E3D43 #4B4E3D #3D4E49
square
#403D4E #4E3D43 #4B4E3D #3D4E49
split-complementary
#403D4E #4E493D #434E3D
monochromatic
#0E0D11 #24222C #403D4E #5C5870 #797392

Accessibility & contrast

On white

10.52
#403D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403D4E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D4E#FFFFFF#000000##FFFFFF
##403D4E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403d4e;
/* rgb */ color: rgb(64, 61, 78);
/* oklch */ color: oklch(37.0% 0.029 293.0);
Tailwind
colors: {
  custom: {
    50: '#75727f',
    500: '#403d4e',
    950: '#000000',
  },
}
SCSS
$custom: #403d4e;
$custom-light: #75727f;
$custom-dark: #000000;
JSON
{
  "hex": "#403d4e",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 78
  },
  "hsl": {
    "h": 250.588,
    "s": 12.23,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.0291,
    "h": 293
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#403D4E
secondary
#7A7D6A
accent
#B573A9
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #403D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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