#403156#403156

#403156 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 34.7% C 0.065 H 301.8°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#403156
RGBrgb(64, 49, 86)
HSLhsl(264, 27%, 26%)
HSVhsv(264, 43%, 34%)
CMYKcmyk(25.6%, 43%, 0%, 66.3%)
CIE-LABlab(23.53, 15.58, -19.94)
CIE-LCHlch(23.53, 25.31, 308.00°)
OKLaboklab(34.7% 0.0344 -0.0555)
OKLCHoklch(34.7% 0.065 301.8)
XYZxyz(4.8920, 3.9585, 9.3086)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403156 #475631
analogous
#313556 #403156 #533156
triadic
#403156 #564031 #315640
tetradic
#403156 #563135 #475631 #315653
square
#403156 #563135 #475631 #315653
split-complementary
#403156 #565331 #355631
monochromatic
#0F0B13 #231B2F #403156 #5D477D #7A5EA3

Accessibility & contrast

On white

11.72
#403156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#403156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403156
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403156#FFFFFF#000000##FFFFFF
##4031561.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283857
Deuteranopia (green-blind)
#2B3855
Tritanopia (blue-blind)
#3C373F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403156;
/* rgb */ color: rgb(64, 49, 86);
/* oklch */ color: oklch(34.7% 0.065 301.8);
Tailwind
colors: {
  custom: {
    50: '#766986',
    500: '#403156',
    950: '#000000',
  },
}
SCSS
$custom: #403156;
$custom-light: #766986;
$custom-dark: #000000;
JSON
{
  "hex": "#403156",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 86
  },
  "hsl": {
    "h": 264.324,
    "s": 27.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.06529,
    "h": 301.8
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#403156
secondary
#76875C
accent
#C4649D
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403156

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

Preview Lab → · Contrast checker → · Palette generator →

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