#403A52#403A52

#403A52 is a dark, muted violet. Relative luminance 0.047; OKLCH L 36.5% C 0.041 H 295.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#403A52
RGBrgb(64, 58, 82)
HSLhsl(255, 17%, 27%)
HSVhsv(255, 29%, 32%)
CMYKcmyk(22%, 29.3%, 0%, 67.8%)
CIE-LABlab(25.94, 8.44, -13.58)
CIE-LCHlch(25.94, 15.99, 301.86°)
OKLaboklab(36.48% 0.018 -0.0373)
OKLCHoklch(36.48% 0.041 295.8)
XYZxyz(5.1501, 4.7253, 8.6217)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A52 #4C523A
analogous
#3A4052 #403A52 #4C3A52
triadic
#403A52 #52403A #3A5240
tetradic
#403A52 #523A40 #4C523A #3A524C
square
#403A52 #523A40 #4C523A #3A524C
split-complementary
#403A52 #524C3A #40523A
monochromatic
#0E0D12 #24212E #403A52 #5C5376 #796E98

Accessibility & contrast

On white

10.80
#403A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#403A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A52
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A52#FFFFFF#000000##FFFFFF
##403A521.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353E53
Deuteranopia (green-blind)
#353D51
Tritanopia (blue-blind)
#3D3E42
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403a52;
/* rgb */ color: rgb(64, 58, 82);
/* oklch */ color: oklch(36.5% 0.041 295.8);
Tailwind
colors: {
  custom: {
    50: '#757082',
    500: '#403a52',
    950: '#000000',
  },
}
SCSS
$custom: #403a52;
$custom-light: #757082;
$custom-dark: #000000;
JSON
{
  "hex": "#403a52",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 82
  },
  "hsl": {
    "h": 255,
    "s": 17.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36477,
    "c": 0.04143,
    "h": 295.8
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#403A52
secondary
#7B8266
accent
#BA6EA7
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403A52

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

Preview Lab → · Contrast checker → · Palette generator →

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