#403E91#403E91
#403E91 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.133 H 279.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #403E91 |
|---|---|
| RGB | rgb(64, 62, 145) |
| HSL | hsl(241, 40%, 41%) |
| HSV | hsv(241, 57%, 57%) |
| CMYK | cmyk(55.9%, 57.2%, 0%, 43.1%) |
| CIE-LAB | lab(30.83, 25.59, -45.81) |
| CIE-LCH | lch(30.83, 52.47, 299.19°) |
| OKLab | oklab(41.4% 0.023 -0.1312) |
| OKLCH | oklch(41.4% 0.133 279.9) |
| XYZ | xyz(8.9462, 6.5790, 27.5810) |
| Luminance | 0.0658 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.35
Darkslateblue
#483D8B
ΔE00 2.18
Sapphire (survey)
#2138AB
ΔE00 5.55
Ocean Blue
#4F42B5
ΔE00 6.02
Twilight
#4E518B
ΔE00 6.85
Cobalt (survey)
#1E488F
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403E91 #8F913E
analogous
#3E6591 #403E91 #693E91
triadic
#403E91 #91403E #3E9140
tetradic
#403E91 #913E65 #8F913E #3E9169
square
#403E91 #913E65 #8F913E #3E9169
split-complementary
#403E91 #91693E #65913E
monochromatic
#1A193B #2D2C66 #403E91 #5856B7 #8280C9
Accessibility & contrast
On white
9.07
#403E91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#403E91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403E91
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403E91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403E91 | 1.00 | 9.07 | 2.32 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#024C94
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#1A5161
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #403e91; /* rgb */ color: rgb(64, 62, 145); /* oklch */ color: oklch(41.4% 0.133 279.9);
Tailwind
colors: {
custom: {
50: '#7c73b2',
500: '#403e91',
950: '#000000',
},
}SCSS
$custom: #403e91; $custom-light: #7c73b2; $custom-dark: #000000;
JSON
{
"hex": "#403e91",
"rgb": {
"r": 64,
"g": 62,
"b": 145
},
"hsl": {
"h": 241.446,
"s": 40.097,
"l": 40.588
},
"oklch": {
"l": 0.414,
"c": 0.13317,
"h": 279.9
},
"luminance": 0.0658
}Semantic roles & 50–950 ramp
primary
#403E91
secondary
#B2B378
accent
#D058CD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80