#403C52#403C52

#403C52 is a dark, muted violet. Relative luminance 0.049; OKLCH L 36.9% C 0.038 H 292.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#403C52
RGBrgb(64, 60, 82)
HSLhsl(251, 15%, 28%)
HSVhsv(251, 27%, 32%)
CMYKcmyk(22%, 26.8%, 0%, 67.8%)
CIE-LABlab(26.54, 7.11, -12.66)
CIE-LCHlch(26.54, 14.52, 299.31°)
OKLaboklab(36.94% 0.0146 -0.0347)
OKLCHoklch(36.94% 0.038 292.8)
XYZxyz(5.2529, 4.9308, 8.6560)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C52 #4E523C
analogous
#3C4352 #403C52 #4B3C52
triadic
#403C52 #52403C #3C5240
tetradic
#403C52 #523C43 #4E523C #3C524B
square
#403C52 #523C43 #4E523C #3C524B
split-complementary
#403C52 #524B3C #43523C
monochromatic
#0E0D12 #24222F #403C52 #5C5675 #787197

Accessibility & contrast

On white

10.57
#403C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#403C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C52
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C52#FFFFFF#000000##FFFFFF
##403C521.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373F53
Deuteranopia (green-blind)
#373E51
Tritanopia (blue-blind)
#3C4044
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403c52;
/* rgb */ color: rgb(64, 60, 82);
/* oklch */ color: oklch(36.9% 0.038 292.8);
Tailwind
colors: {
  custom: {
    50: '#757182',
    500: '#403c52',
    950: '#000000',
  },
}
SCSS
$custom: #403c52;
$custom-light: #757182;
$custom-dark: #000000;
JSON
{
  "hex": "#403c52",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 82
  },
  "hsl": {
    "h": 250.909,
    "s": 15.493,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.03766,
    "h": 292.8
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#403C52
secondary
#7D8268
accent
#B870AB
background
#F7F6F7
surface
#EDECEE
border
#C8C7C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403C52

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

Preview Lab → · Contrast checker → · Palette generator →

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