#403252#403252

#403252 is a dark, muted violet. Relative luminance 0.040; OKLCH L 34.7% C 0.057 H 303.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#403252
RGBrgb(64, 50, 82)
HSLhsl(266, 24%, 26%)
HSVhsv(266, 39%, 32%)
CMYKcmyk(22%, 39%, 0%, 67.8%)
CIE-LABlab(23.61, 13.81, -17.18)
CIE-LCHlch(23.61, 22.04, 308.79°)
OKLaboklab(34.69% 0.0317 -0.0475)
OKLCHoklch(34.69% 0.057 303.7)
XYZxyz(4.7776, 3.9804, 8.4976)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403252 #445232
analogous
#323452 #403252 #503252
triadic
#403252 #524032 #325240
tetradic
#403252 #523234 #445232 #325250
square
#403252 #523234 #445232 #325250
split-complementary
#403252 #525032 #345232
monochromatic
#0F0C13 #221B2C #403252 #5E4978 #7B609E

Accessibility & contrast

On white

11.69
#403252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#403252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403252
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403252#FFFFFF#000000##FFFFFF
##4032521.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3853
Deuteranopia (green-blind)
#2E3851
Tritanopia (blue-blind)
#3D373E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403252;
/* rgb */ color: rgb(64, 50, 82);
/* oklch */ color: oklch(34.7% 0.057 303.7);
Tailwind
colors: {
  custom: {
    50: '#756a82',
    500: '#403252',
    950: '#000000',
  },
}
SCSS
$custom: #403252;
$custom-light: #756a82;
$custom-dark: #000000;
JSON
{
  "hex": "#403252",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 82
  },
  "hsl": {
    "h": 266.25,
    "s": 24.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.05714,
    "h": 303.7
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#403252
secondary
#72835D
accent
#C16799
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #403252

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

Preview Lab → · Contrast checker → · Palette generator →

#403252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva