#403F94#403F94
#403F94 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.136 H 279.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).
Color values
| HEX | #403F94 |
|---|---|
| RGB | rgb(64, 63, 148) |
| HSL | hsl(241, 40%, 41%) |
| HSV | hsv(241, 57%, 58%) |
| CMYK | cmyk(56.8%, 57.4%, 0%, 42%) |
| CIE-LAB | lab(31.31, 25.96, -46.87) |
| CIE-LCH | lch(31.31, 53.58, 298.98°) |
| OKLab | oklab(41.83% 0.0219 -0.1343) |
| OKLCH | oklch(41.83% 0.136 279.3) |
| XYZ | xyz(9.2355, 6.7825, 28.8337) |
| Luminance | 0.0678 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.12
Darkslateblue
#483D8B
ΔE00 2.59
Sapphire (survey)
#2138AB
ΔE00 5.24
Ocean Blue
#4F42B5
ΔE00 5.59
Twilight
#4E518B
ΔE00 6.79
Cobalt (survey)
#1E488F
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F94 #93943F
analogous
#3F6994 #403F94 #6B3F94
triadic
#403F94 #94403F #3F9440
tetradic
#403F94 #943F69 #93943F #3F946B
square
#403F94 #943F69 #93943F #3F946B
split-complementary
#403F94 #946B3F #69943F
monochromatic
#1B1A3E #2D2D69 #403F94 #5958B8 #8483CA
Accessibility & contrast
On white
8.91
#403F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#403F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F94
8.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F94 | 1.00 | 8.91 | 2.36 | 8.91 |
| #FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#155363
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403f94; /* rgb */ color: rgb(64, 63, 148); /* oklch */ color: oklch(41.8% 0.136 279.3);
Tailwind
colors: {
custom: {
50: '#7d74b4',
500: '#403f94',
950: '#000000',
},
}SCSS
$custom: #403f94; $custom-light: #7d74b4; $custom-dark: #000000;
JSON
{
"hex": "#403f94",
"rgb": {
"r": 64,
"g": 63,
"b": 148
},
"hsl": {
"h": 240.706,
"s": 40.284,
"l": 41.373
},
"oklch": {
"l": 0.41826,
"c": 0.13607,
"h": 279.3
},
"luminance": 0.06783
}Semantic roles & 50–950 ramp
primary
#403F94
secondary
#B4B57A
accent
#D058CF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80