#403F97#403F97
#403F97 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.140 H 279.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #403F97 |
|---|---|
| RGB | rgb(64, 63, 151) |
| HSL | hsl(241, 41%, 42%) |
| HSV | hsv(241, 58%, 59%) |
| CMYK | cmyk(57.6%, 58.3%, 0%, 40.8%) |
| CIE-LAB | lab(31.53, 26.98, -48.34) |
| CIE-LCH | lch(31.53, 55.36, 299.17°) |
| OKLab | oklab(42.06% 0.022 -0.1386) |
| OKLCH | oklch(42.06% 0.14 279) |
| XYZ | xyz(9.4760, 6.8787, 30.1005) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.17
Darkslateblue
#483D8B
ΔE00 2.93
Sapphire (survey)
#2138AB
ΔE00 4.87
Ocean Blue
#4F42B5
ΔE00 5.15
Twilight
#4E518B
ΔE00 7.04
Blue Blue
#2242C7
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F97 #96973F
analogous
#3F6A97 #403F97 #6C3F97
triadic
#403F97 #97403F #3F9740
tetradic
#403F97 #973F6A #96973F #3F976C
square
#403F97 #973F6A #96973F #3F976C
split-complementary
#403F97 #976C3F #6A973F
monochromatic
#1B1B41 #2E2D6C #403F97 #5A59BA #8585CC
Accessibility & contrast
On white
8.84
#403F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#403F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F97
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F97 | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#105464
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403f97; /* rgb */ color: rgb(64, 63, 151); /* oklch */ color: oklch(42.1% 0.140 279.0);
Tailwind
colors: {
custom: {
50: '#7d74b6',
500: '#403f97',
950: '#000000',
},
}SCSS
$custom: #403f97; $custom-light: #7d74b6; $custom-dark: #000000;
JSON
{
"hex": "#403f97",
"rgb": {
"r": 64,
"g": 63,
"b": 151
},
"hsl": {
"h": 240.682,
"s": 41.121,
"l": 41.961
},
"oklch": {
"l": 0.42061,
"c": 0.14034,
"h": 279
},
"luminance": 0.06879
}Semantic roles & 50–950 ramp
primary
#403F97
secondary
#B6B67C
accent
#D157D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80