#403852#403852

#403852 is a dark, muted violet. Relative luminance 0.045; OKLCH L 36.0% C 0.045 H 298.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#403852
RGBrgb(64, 56, 82)
HSLhsl(258, 19%, 27%)
HSVhsv(258, 32%, 32%)
CMYKcmyk(22%, 31.7%, 0%, 67.8%)
CIE-LABlab(25.34, 9.78, -14.49)
CIE-LCHlch(25.34, 17.48, 304.01°)
OKLaboklab(36.02% 0.0214 -0.0399)
OKLCHoklch(36.02% 0.045 298.2)
XYZxyz(5.0512, 4.5275, 8.5888)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403852 #4A5238
analogous
#383D52 #403852 #4D3852
triadic
#403852 #524038 #385240
tetradic
#403852 #52383D #4A5238 #38524D
square
#403852 #52383D #4A5238 #38524D
split-complementary
#403852 #524D38 #3D5238
monochromatic
#0E0C12 #241F2E #403852 #5C5176 #796B9A

Accessibility & contrast

On white

11.02
#403852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#403852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403852
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403852#FFFFFF#000000##FFFFFF
##4038521.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323C53
Deuteranopia (green-blind)
#333C51
Tritanopia (blue-blind)
#3D3C41
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403852;
/* rgb */ color: rgb(64, 56, 82);
/* oklch */ color: oklch(36.0% 0.045 298.2);
Tailwind
colors: {
  custom: {
    50: '#756e82',
    500: '#403852',
    950: '#000000',
  },
}
SCSS
$custom: #403852;
$custom-light: #756e82;
$custom-dark: #000000;
JSON
{
  "hex": "#403852",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 82
  },
  "hsl": {
    "h": 258.462,
    "s": 18.841,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3602,
    "c": 0.04528,
    "h": 298.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#403852
secondary
#798264
accent
#BB6CA3
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403852

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

Preview Lab → · Contrast checker → · Palette generator →

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