#403F96#403F96
#403F96 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.139 H 279.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #403F96 |
|---|---|
| RGB | rgb(64, 63, 150) |
| HSL | hsl(241, 41%, 42%) |
| HSV | hsv(241, 58%, 59%) |
| CMYK | cmyk(57.3%, 58%, 0%, 41.2%) |
| CIE-LAB | lab(31.45, 26.64, -47.85) |
| CIE-LCH | lch(31.45, 54.77, 299.10°) |
| OKLab | oklab(41.98% 0.022 -0.1372) |
| OKLCH | oklch(41.98% 0.139 279.1) |
| XYZ | xyz(9.3951, 6.8464, 29.6747) |
| Luminance | 0.0685 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.13
Darkslateblue
#483D8B
ΔE00 2.81
Sapphire (survey)
#2138AB
ΔE00 4.99
Ocean Blue
#4F42B5
ΔE00 5.29
Twilight
#4E518B
ΔE00 6.95
Blue Blue
#2242C7
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F96 #95963F
analogous
#3F6A96 #403F96 #6C3F96
triadic
#403F96 #96403F #3F9640
tetradic
#403F96 #963F6A #95963F #3F966C
square
#403F96 #963F6A #95963F #3F966C
split-complementary
#403F96 #966C3F #6A963F
monochromatic
#1B1B40 #2E2D6B #403F96 #5A59B9 #8584CB
Accessibility & contrast
On white
8.86
#403F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#403F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F96
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F96 | 1.00 | 8.86 | 2.37 | 8.86 |
| #FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#125364
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403f96; /* rgb */ color: rgb(64, 63, 150); /* oklch */ color: oklch(42.0% 0.139 279.1);
Tailwind
colors: {
custom: {
50: '#7d74b5',
500: '#403f96',
950: '#000000',
},
}SCSS
$custom: #403f96; $custom-light: #7d74b5; $custom-dark: #000000;
JSON
{
"hex": "#403f96",
"rgb": {
"r": 64,
"g": 63,
"b": 150
},
"hsl": {
"h": 240.69,
"s": 40.845,
"l": 41.765
},
"oklch": {
"l": 0.41982,
"c": 0.13892,
"h": 279.1
},
"luminance": 0.06847
}Semantic roles & 50–950 ramp
primary
#403F96
secondary
#B5B67B
accent
#D157CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80