#403856#403856

#403856 is a dark, muted violet. Relative luminance 0.046; OKLCH L 36.2% C 0.052 H 296.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#403856
RGBrgb(64, 56, 86)
HSLhsl(256, 21%, 28%)
HSVhsv(256, 35%, 34%)
CMYKcmyk(25.6%, 34.9%, 0%, 66.3%)
CIE-LABlab(25.53, 10.88, -16.83)
CIE-LCHlch(25.53, 20.04, 302.89°)
OKLaboklab(36.23% 0.0227 -0.0466)
OKLCHoklch(36.23% 0.052 296)
XYZxyz(5.2079, 4.5902, 9.4139)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403856 #4E5638
analogous
#383F56 #403856 #4F3856
triadic
#403856 #564038 #385640
tetradic
#403856 #56383F #4E5638 #38564F
square
#403856 #56383F #4E5638 #38564F
split-complementary
#403856 #564F38 #3F5638
monochromatic
#0E0C13 #242031 #403856 #5C507B #786A9E

Accessibility & contrast

On white

10.95
#403856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#403856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403856
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403856#FFFFFF#000000##FFFFFF
##4038561.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313D57
Deuteranopia (green-blind)
#323C55
Tritanopia (blue-blind)
#3C3D43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403856;
/* rgb */ color: rgb(64, 56, 86);
/* oklch */ color: oklch(36.2% 0.052 296.0);
Tailwind
colors: {
  custom: {
    50: '#756e85',
    500: '#403856',
    950: '#000000',
  },
}
SCSS
$custom: #403856;
$custom-light: #756e85;
$custom-dark: #000000;
JSON
{
  "hex": "#403856",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 86
  },
  "hsl": {
    "h": 256,
    "s": 21.127,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36228,
    "c": 0.05179,
    "h": 296
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#403856
secondary
#7D8664
accent
#BE6AA7
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08070B
muted
#7B7A7C

Preview Lab

Preview with #403856

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

Preview Lab → · Contrast checker → · Palette generator →

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