#403E98#403E98
#403E98 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.143 H 279.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #403E98 |
|---|---|
| RGB | rgb(64, 62, 152) |
| HSL | hsl(241, 42%, 42%) |
| HSV | hsv(241, 59%, 60%) |
| CMYK | cmyk(57.9%, 59.2%, 0%, 40.4%) |
| CIE-LAB | lab(31.35, 27.96, -49.24) |
| CIE-LCH | lch(31.35, 56.63, 299.59°) |
| OKLab | oklab(41.95% 0.023 -0.1413) |
| OKLCH | oklch(41.95% 0.143 279.3) |
| XYZ | xyz(9.5027, 6.8016, 30.5118) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.36
Darkslateblue
#483D8B
ΔE00 2.99
Sapphire (survey)
#2138AB
ΔE00 4.67
Ocean Blue
#4F42B5
ΔE00 4.98
Blue Blue
#2242C7
ΔE00 7.14
Twilight
#4E518B
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403E98 #96983E
analogous
#3E6998 #403E98 #6D3E98
triadic
#403E98 #98403E #3E9840
tetradic
#403E98 #983E69 #96983E #3E986D
square
#403E98 #983E69 #96983E #3E986D
split-complementary
#403E98 #986D3E #69983E
monochromatic
#1B1B41 #2E2C6D #403E98 #5A58BB #8584CD
Accessibility & contrast
On white
8.90
#403E98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#403E98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403E98
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403E98 | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#0E5365
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403e98; /* rgb */ color: rgb(64, 62, 152); /* oklch */ color: oklch(42.0% 0.143 279.3);
Tailwind
colors: {
custom: {
50: '#7d73b7',
500: '#403e98',
950: '#000000',
},
}SCSS
$custom: #403e98; $custom-light: #7d73b7; $custom-dark: #000000;
JSON
{
"hex": "#403e98",
"rgb": {
"r": 64,
"g": 62,
"b": 152
},
"hsl": {
"h": 241.333,
"s": 42.056,
"l": 41.961
},
"oklch": {
"l": 0.41953,
"c": 0.14312,
"h": 279.3
},
"luminance": 0.06802
}Semantic roles & 50–950 ramp
primary
#403E98
secondary
#B6B77B
accent
#D256CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80