#403C71#403C71
#403C71 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.7% C 0.088 H 284.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #403C71 |
|---|---|
| RGB | rgb(64, 60, 113) |
| HSL | hsl(245, 31%, 34%) |
| HSV | hsv(245, 47%, 44%) |
| CMYK | cmyk(43.4%, 46.9%, 0%, 55.7%) |
| CIE-LAB | lab(28.15, 16.34, -30.14) |
| CIE-LCH | lch(28.15, 34.28, 298.47°) |
| OKLab | oklab(38.7% 0.0227 -0.0852) |
| OKLCH | oklch(38.7% 0.088 284.9) |
| XYZ | xyz(6.7100, 5.5137, 16.3303) |
| Luminance | 0.0551 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.33
Blueberry
#464196
ΔE00 6.98
Twilight
#4E518B
ΔE00 7.25
Dusk
#4E5481
ΔE00 7.91
Navy Blue
#1B2A4A
ΔE00 9.82
Marine
#042E60
ΔE00 9.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403C71 #6D713C
analogous
#3C5371 #403C71 #5B3C71
triadic
#403C71 #71403C #3C7140
tetradic
#403C71 #713C53 #6D713C #3C715B
square
#403C71 #713C53 #6D713C #3C715B
split-complementary
#403C71 #715B3C #53713C
monochromatic
#131221 #292749 #403C71 #575199 #7873B5
Accessibility & contrast
On white
9.99
#403C71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#403C71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403C71
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403C71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403C71 | 1.00 | 9.99 | 2.10 | 9.99 |
| #FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#324751
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #403c71; /* rgb */ color: rgb(64, 60, 113); /* oklch */ color: oklch(38.7% 0.088 284.9);
Tailwind
colors: {
custom: {
50: '#78719a',
500: '#403c71',
950: '#000000',
},
}SCSS
$custom: #403c71; $custom-light: #78719a; $custom-dark: #000000;
JSON
{
"hex": "#403c71",
"rgb": {
"r": 64,
"g": 60,
"b": 113
},
"hsl": {
"h": 244.528,
"s": 30.636,
"l": 33.922
},
"oklch": {
"l": 0.38704,
"c": 0.08813,
"h": 284.9
},
"luminance": 0.05514
}Semantic roles & 50–950 ramp
primary
#403C71
secondary
#9B9F6A
accent
#C761BF
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E