#403A4E#403A4E

#403A4E is a dark, muted violet. Relative luminance 0.047; OKLCH L 36.3% C 0.035 H 298.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#403A4E
RGBrgb(64, 58, 78)
HSLhsl(258, 15%, 27%)
HSVhsv(258, 26%, 31%)
CMYKcmyk(17.9%, 25.6%, 0%, 69.4%)
CIE-LABlab(25.76, 7.37, -11.21)
CIE-LCHlch(25.76, 13.42, 303.31°)
OKLaboklab(36.28% 0.0166 -0.0306)
OKLCHoklch(36.28% 0.035 298.4)
XYZxyz(5.0023, 4.6661, 7.8434)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A4E #484E3A
analogous
#3A3E4E #403A4E #4A3A4E
triadic
#403A4E #4E403A #3A4E40
tetradic
#403A4E #4E3A3E #484E3A #3A4E4A
square
#403A4E #4E3A3E #484E3A #3A4E4A
split-complementary
#403A4E #4E4A3A #3E4E3A
monochromatic
#0E0D12 #23202B #403A4E #5D5471 #7A6F94

Accessibility & contrast

On white

10.86
#403A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#403A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A4E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A4E#FFFFFF#000000##FFFFFF
##403A4E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363D4F
Deuteranopia (green-blind)
#373D4D
Tritanopia (blue-blind)
#3E3D41
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403a4e;
/* rgb */ color: rgb(64, 58, 78);
/* oklch */ color: oklch(36.3% 0.035 298.4);
Tailwind
colors: {
  custom: {
    50: '#75707f',
    500: '#403a4e',
    950: '#000000',
  },
}
SCSS
$custom: #403a4e;
$custom-light: #75707f;
$custom-dark: #000000;
JSON
{
  "hex": "#403a4e",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 78
  },
  "hsl": {
    "h": 258,
    "s": 14.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.03483,
    "h": 298.4
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#403A4E
secondary
#777E66
accent
#B770A2
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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