#403B8A#403B8A
#403B8A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.127 H 281.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #403B8A |
|---|---|
| RGB | rgb(64, 59, 138) |
| HSL | hsl(244, 40%, 39%) |
| HSV | hsv(244, 57%, 54%) |
| CMYK | cmyk(53.6%, 57.2%, 0%, 45.9%) |
| CIE-LAB | lab(29.54, 25.20, -43.57) |
| CIE-LCH | lch(29.54, 50.33, 300.04°) |
| OKLab | oklab(40.28% 0.0262 -0.1246) |
| OKLCH | oklch(40.28% 0.127 281.9) |
| XYZ | xyz(8.2644, 6.0524, 24.7726) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.58
Blueberry
#464196
ΔE00 2.46
Sapphire (survey)
#2138AB
ΔE00 6.43
Ocean Blue
#4F42B5
ΔE00 7.11
Twilight
#4E518B
ΔE00 7.33
Rebeccapurple
#663399
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403B8A #858A3B
analogous
#3B5D8A #403B8A #673B8A
triadic
#403B8A #8A403B #3B8A40
tetradic
#403B8A #8A3B5D #858A3B #3B8A67
square
#403B8A #8A3B5D #858A3B #3B8A67
split-complementary
#403B8A #8A673B #5D8A3B
monochromatic
#181634 #2C295F #403B8A #554FB4 #7E79C6
Accessibility & contrast
On white
9.50
#403B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#403B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403B8A
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403B8A | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#214D5C
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #403b8a; /* rgb */ color: rgb(64, 59, 138); /* oklch */ color: oklch(40.3% 0.127 281.9);
Tailwind
colors: {
custom: {
50: '#7b71ad',
500: '#403b8a',
950: '#000000',
},
}SCSS
$custom: #403b8a; $custom-light: #7b71ad; $custom-dark: #000000;
JSON
{
"hex": "#403b8a",
"rgb": {
"r": 64,
"g": 59,
"b": 138
},
"hsl": {
"h": 243.797,
"s": 40.102,
"l": 38.627
},
"oklch": {
"l": 0.40284,
"c": 0.12734,
"h": 281.9
},
"luminance": 0.06053
}Semantic roles & 50–950 ramp
primary
#403B8A
secondary
#ACAF71
accent
#D058C8
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F