#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 |
|---|---|
| RGB | rgb(64, 49, 86) |
| HSL | hsl(264, 27%, 26%) |
| HSV | hsv(264, 43%, 34%) |
| CMYK | cmyk(25.6%, 43%, 0%, 66.3%) |
| CIE-LAB | lab(23.53, 15.58, -19.94) |
| CIE-LCH | lch(23.53, 25.31, 308.00°) |
| OKLab | oklab(34.7% 0.0344 -0.0555) |
| OKLCH | oklch(34.7% 0.065 301.8) |
| XYZ | xyz(4.8920, 3.9585, 9.3086) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 10.53
Grape
#6C3461
ΔE00 11.31
Darkslateblue
#483D8B
ΔE00 11.49
Dark Purple
#35063E
ΔE00 11.63
Deep Violet
#490648
ΔE00 12.00
Eggplant
#380835
ΔE00 12.02
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 |
|---|---|---|---|---|
| ##403156 | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.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