#403C4E#403C4E

#403C4E is a dark, muted violet. Relative luminance 0.049; OKLCH L 36.8% C 0.031 H 295.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#403C4E
RGBrgb(64, 60, 78)
HSLhsl(253, 13%, 27%)
HSVhsv(253, 23%, 31%)
CMYKcmyk(17.9%, 23.1%, 0%, 69.4%)
CIE-LABlab(26.37, 6.04, -10.29)
CIE-LCHlch(26.37, 11.93, 300.40°)
OKLaboklab(36.75% 0.0131 -0.0281)
OKLCHoklch(36.75% 0.031 295)
XYZxyz(5.1051, 4.8717, 7.8776)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C4E #4A4E3C
analogous
#3C414E #403C4E #493C4E
triadic
#403C4E #4E403C #3C4E40
tetradic
#403C4E #4E3C41 #4A4E3C #3C4E49
square
#403C4E #4E3C41 #4A4E3C #3C4E49
split-complementary
#403C4E #4E493C #414E3C
monochromatic
#0E0D11 #24212B #403C4E #5C5771 #797292

Accessibility & contrast

On white

10.64
#403C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#403C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C4E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C4E#FFFFFF#000000##FFFFFF
##403C4E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383F4F
Deuteranopia (green-blind)
#393E4D
Tritanopia (blue-blind)
#3D3F42
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403c4e;
/* rgb */ color: rgb(64, 60, 78);
/* oklch */ color: oklch(36.8% 0.031 295.0);
Tailwind
colors: {
  custom: {
    50: '#75717f',
    500: '#403c4e',
    950: '#000000',
  },
}
SCSS
$custom: #403c4e;
$custom-light: #75717f;
$custom-dark: #000000;
JSON
{
  "hex": "#403c4e",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 78
  },
  "hsl": {
    "h": 253.333,
    "s": 13.043,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36751,
    "c": 0.03098,
    "h": 295
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#403C4E
secondary
#797D68
accent
#B672A7
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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