#403F95#403F95
#403F95 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.137 H 279.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #403F95 |
|---|---|
| RGB | rgb(64, 63, 149) |
| HSL | hsl(241, 41%, 42%) |
| HSV | hsv(241, 58%, 58%) |
| CMYK | cmyk(57%, 57.7%, 0%, 41.6%) |
| CIE-LAB | lab(31.38, 26.30, -47.36) |
| CIE-LCH | lch(31.38, 54.17, 299.04°) |
| OKLab | oklab(41.9% 0.0219 -0.1357) |
| OKLCH | oklch(41.9% 0.137 279.2) |
| XYZ | xyz(9.3150, 6.8143, 29.2524) |
| Luminance | 0.0682 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 1.12
Darkslateblue
#483D8B
ΔE00 2.70
Sapphire (survey)
#2138AB
ΔE00 5.12
Ocean Blue
#4F42B5
ΔE00 5.44
Twilight
#4E518B
ΔE00 6.87
Blue Blue
#2242C7
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403F95 #94953F
analogous
#3F6995 #403F95 #6B3F95
triadic
#403F95 #95403F #3F9540
tetradic
#403F95 #953F69 #94953F #3F956B
square
#403F95 #953F69 #94953F #3F956B
split-complementary
#403F95 #956B3F #69953F
monochromatic
#1B1B3F #2E2D6A #403F95 #5A59B9 #8484CB
Accessibility & contrast
On white
8.89
#403F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#403F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403F95
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403F95 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#145363
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #403f95; /* rgb */ color: rgb(64, 63, 149); /* oklch */ color: oklch(41.9% 0.137 279.2);
Tailwind
colors: {
custom: {
50: '#7d74b5',
500: '#403f95',
950: '#000000',
},
}SCSS
$custom: #403f95; $custom-light: #7d74b5; $custom-dark: #000000;
JSON
{
"hex": "#403f95",
"rgb": {
"r": 64,
"g": 63,
"b": 149
},
"hsl": {
"h": 240.698,
"s": 40.566,
"l": 41.569
},
"oklch": {
"l": 0.41904,
"c": 0.13749,
"h": 279.2
},
"luminance": 0.06815
}Semantic roles & 50–950 ramp
primary
#403F95
secondary
#B4B57B
accent
#D057CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80