#403F99#403F99
#403F99 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.143 H 278.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #403F99 |
|---|---|
| RGB | rgb(64, 63, 153) |
| HSL | hsl(241, 42%, 42%) |
| HSV | hsv(241, 59%, 60%) |
| CMYK | cmyk(58.2%, 58.8%, 0%, 40%) |
| CIE-LAB | lab(31.68, 27.66, -49.31) |
| CIE-LCH | lch(31.68, 56.54, 299.29°) |
| OKLab | oklab(42.22% 0.022 -0.1415) |
| OKLCH | oklch(42.22% 0.143 278.8) |
| XYZ | xyz(9.6398, 6.9442, 30.9632) |
| Luminance | 0.0694 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.31
Darkslateblue
#483D8B
ΔE00 3.17
Sapphire (survey)
#2138AB
ΔE00 4.65
Ocean Blue
#4F42B5
ΔE00 4.86
Blue Blue
#2242C7
ΔE00 6.94
Twilight
#4E518B
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F99 #98993F
analogous
#3F6B99 #403F99 #6D3F99
triadic
#403F99 #99403F #3F9940
tetradic
#403F99 #993F6B #98993F #3F996D
square
#403F99 #993F6B #98993F #3F996D
split-complementary
#403F99 #996D3F #6B993F
monochromatic
#1C1B42 #2E2D6E #403F99 #5B5ABB #8685CD
Accessibility & contrast
On white
8.79
#403F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#403F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F99
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F99 | 1.00 | 8.79 | 2.39 | 8.79 |
| #FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#0C5465
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #403f99; /* rgb */ color: rgb(64, 63, 153); /* oklch */ color: oklch(42.2% 0.143 278.8);
Tailwind
colors: {
custom: {
50: '#7d74b8',
500: '#403f99',
950: '#000000',
},
}SCSS
$custom: #403f99; $custom-light: #7d74b8; $custom-dark: #000000;
JSON
{
"hex": "#403f99",
"rgb": {
"r": 64,
"g": 63,
"b": 153
},
"hsl": {
"h": 240.667,
"s": 41.667,
"l": 42.353
},
"oklch": {
"l": 0.42221,
"c": 0.14317,
"h": 278.8
},
"luminance": 0.06945
}Semantic roles & 50–950 ramp
primary
#403F99
secondary
#B7B77C
accent
#D156D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80