#403E95#403E95
#403E95 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.139 H 279.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #403E95 |
|---|---|
| RGB | rgb(64, 62, 149) |
| HSL | hsl(241, 41%, 41%) |
| HSV | hsv(241, 58%, 58%) |
| CMYK | cmyk(57%, 58.4%, 0%, 41.6%) |
| CIE-LAB | lab(31.12, 26.95, -47.78) |
| CIE-LCH | lch(31.12, 54.85, 299.42°) |
| OKLab | oklab(41.71% 0.023 -0.137) |
| OKLCH | oklch(41.71% 0.139 279.5) |
| XYZ | xyz(9.2601, 6.7046, 29.2341) |
| Luminance | 0.0670 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.23
Darkslateblue
#483D8B
ΔE00 2.61
Sapphire (survey)
#2138AB
ΔE00 5.02
Ocean Blue
#4F42B5
ΔE00 5.42
Twilight
#4E518B
ΔE00 7.15
Blue Blue
#2242C7
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403E95 #93953E
analogous
#3E6895 #403E95 #6C3E95
triadic
#403E95 #95403E #3E9540
tetradic
#403E95 #953E68 #93953E #3E956C
square
#403E95 #953E68 #93953E #3E956C
split-complementary
#403E95 #956C3E #68953E
monochromatic
#1B1A3F #2D2C6A #403E95 #5957B9 #8482CB
Accessibility & contrast
On white
8.97
#403E95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#403E95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403E95
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403E95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403E95 | 1.00 | 8.97 | 2.34 | 8.97 |
| #FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#145263
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #403e95; /* rgb */ color: rgb(64, 62, 149); /* oklch */ color: oklch(41.7% 0.139 279.5);
Tailwind
colors: {
custom: {
50: '#7d73b5',
500: '#403e95',
950: '#000000',
},
}SCSS
$custom: #403e95; $custom-light: #7d73b5; $custom-dark: #000000;
JSON
{
"hex": "#403e95",
"rgb": {
"r": 64,
"g": 62,
"b": 149
},
"hsl": {
"h": 241.379,
"s": 41.232,
"l": 41.373
},
"oklch": {
"l": 0.41714,
"c": 0.13888,
"h": 279.5
},
"luminance": 0.06705
}Semantic roles & 50–950 ramp
primary
#403E95
secondary
#B4B57A
accent
#D157CE
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80