#403E97#403E97
#403E97 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.142 H 279.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #403E97 |
|---|---|
| RGB | rgb(64, 62, 151) |
| HSL | hsl(241, 42%, 42%) |
| HSV | hsv(241, 59%, 59%) |
| CMYK | cmyk(57.6%, 58.9%, 0%, 40.8%) |
| CIE-LAB | lab(31.28, 27.62, -48.75) |
| CIE-LCH | lch(31.28, 56.03, 299.54°) |
| OKLab | oklab(41.87% 0.023 -0.1398) |
| OKLCH | oklch(41.87% 0.142 279.3) |
| XYZ | xyz(9.4211, 6.7690, 30.0823) |
| Luminance | 0.0677 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.30
Darkslateblue
#483D8B
ΔE00 2.86
Sapphire (survey)
#2138AB
ΔE00 4.78
Ocean Blue
#4F42B5
ΔE00 5.13
Blue Blue
#2242C7
ΔE00 7.29
Twilight
#4E518B
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403E97 #95973E
analogous
#3E6997 #403E97 #6D3E97
triadic
#403E97 #97403E #3E9740
tetradic
#403E97 #973E69 #95973E #3E976D
square
#403E97 #973E69 #95973E #3E976D
split-complementary
#403E97 #976D3E #69973E
monochromatic
#1B1A40 #2E2C6C #403E97 #5A58BA #8583CC
Accessibility & contrast
On white
8.92
#403E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#403E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403E97
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403E97 | 1.00 | 8.92 | 2.35 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#105364
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403e97; /* rgb */ color: rgb(64, 62, 151); /* oklch */ color: oklch(41.9% 0.142 279.3);
Tailwind
colors: {
custom: {
50: '#7d73b6',
500: '#403e97',
950: '#000000',
},
}SCSS
$custom: #403e97; $custom-light: #7d73b6; $custom-dark: #000000;
JSON
{
"hex": "#403e97",
"rgb": {
"r": 64,
"g": 62,
"b": 151
},
"hsl": {
"h": 241.348,
"s": 41.784,
"l": 41.765
},
"oklch": {
"l": 0.41873,
"c": 0.14171,
"h": 279.3
},
"luminance": 0.0677
}Semantic roles & 50–950 ramp
primary
#403E97
secondary
#B5B67A
accent
#D256CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80