#403F98#403F98
#403F98 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.142 H 278.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #403F98 |
|---|---|
| RGB | rgb(64, 63, 152) |
| HSL | hsl(241, 41%, 42%) |
| HSV | hsv(241, 59%, 60%) |
| CMYK | cmyk(57.9%, 58.6%, 0%, 40.4%) |
| CIE-LAB | lab(31.60, 27.32, -48.83) |
| CIE-LCH | lch(31.60, 55.95, 299.23°) |
| OKLab | oklab(42.14% 0.022 -0.14) |
| OKLCH | oklch(42.14% 0.142 278.9) |
| XYZ | xyz(9.5576, 6.9114, 30.5301) |
| Luminance | 0.0691 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.24
Darkslateblue
#483D8B
ΔE00 3.05
Sapphire (survey)
#2138AB
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.00
Blue Blue
#2242C7
ΔE00 7.09
Twilight
#4E518B
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F98 #97983F
analogous
#3F6B98 #403F98 #6D3F98
triadic
#403F98 #98403F #3F9840
tetradic
#403F98 #983F6B #97983F #3F986D
square
#403F98 #983F6B #97983F #3F986D
split-complementary
#403F98 #986D3F #6B983F
monochromatic
#1C1B41 #2E2D6D #403F98 #5B5ABA #8685CC
Accessibility & contrast
On white
8.81
#403F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#403F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F98
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F98 | 1.00 | 8.81 | 2.38 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#0E5465
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403f98; /* rgb */ color: rgb(64, 63, 152); /* oklch */ color: oklch(42.1% 0.142 278.9);
Tailwind
colors: {
custom: {
50: '#7d74b7',
500: '#403f98',
950: '#000000',
},
}SCSS
$custom: #403f98; $custom-light: #7d74b7; $custom-dark: #000000;
JSON
{
"hex": "#403f98",
"rgb": {
"r": 64,
"g": 63,
"b": 152
},
"hsl": {
"h": 240.674,
"s": 41.395,
"l": 42.157
},
"oklch": {
"l": 0.42141,
"c": 0.14176,
"h": 278.9
},
"luminance": 0.06912
}Semantic roles & 50–950 ramp
primary
#403F98
secondary
#B6B77C
accent
#D157D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80