#403F71#403F71
#403F71 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.083 H 282.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).
Color values
| HEX | #403F71 |
|---|---|
| RGB | rgb(64, 63, 113) |
| HSL | hsl(241, 28%, 35%) |
| HSV | hsv(241, 44%, 44%) |
| CMYK | cmyk(43.4%, 44.2%, 0%, 55.7%) |
| CIE-LAB | lab(29.00, 14.34, -28.80) |
| CIE-LCH | lch(29.00, 32.17, 296.47°) |
| OKLab | oklab(39.35% 0.0184 -0.0812) |
| OKLCH | oklch(39.35% 0.083 282.8) |
| XYZ | xyz(6.8716, 5.8370, 16.3842) |
| Luminance | 0.0584 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.83
Twilight
#4E518B
ΔE00 6.55
Dusk
#4E5481
ΔE00 6.92
Blueberry
#464196
ΔE00 7.19
Cobalt (survey)
#1E488F
ΔE00 9.77
Navy Blue
#1B2A4A
ΔE00 9.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F71 #70713F
analogous
#3F5771 #403F71 #593F71
triadic
#403F71 #71403F #3F7140
tetradic
#403F71 #713F57 #70713F #3F7159
square
#403F71 #713F57 #70713F #3F7159
split-complementary
#403F71 #71593F #57713F
monochromatic
#131322 #2A294A #403F71 #565598 #7877B3
Accessibility & contrast
On white
9.69
#403F71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#403F71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F71
9.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F71 | 1.00 | 9.69 | 2.17 | 9.69 |
| #FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#314952
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #403f71; /* rgb */ color: rgb(64, 63, 113); /* oklch */ color: oklch(39.3% 0.083 282.8);
Tailwind
colors: {
custom: {
50: '#77749a',
500: '#403f71',
950: '#000000',
},
}SCSS
$custom: #403f71; $custom-light: #77749a; $custom-dark: #000000;
JSON
{
"hex": "#403f71",
"rgb": {
"r": 64,
"g": 63,
"b": 113
},
"hsl": {
"h": 241.2,
"s": 28.409,
"l": 34.51
},
"oklch": {
"l": 0.39347,
"c": 0.08329,
"h": 282.8
},
"luminance": 0.05837
}Semantic roles & 50–950 ramp
primary
#403F71
secondary
#9D9E6E
accent
#C563C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E