#403D7B#403D7B
#403D7B is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.102 H 282.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #403D7B |
|---|---|
| RGB | rgb(64, 61, 123) |
| HSL | hsl(243, 34%, 36%) |
| HSV | hsv(243, 50%, 48%) |
| CMYK | cmyk(48%, 50.4%, 0%, 51.8%) |
| CIE-LAB | lab(29.05, 18.91, -35.02) |
| CIE-LCH | lch(29.05, 39.80, 298.37°) |
| OKLab | oklab(39.58% 0.0227 -0.0995) |
| OKLCH | oklch(39.58% 0.102 282.9) |
| XYZ | xyz(7.3572, 5.8572, 19.4779) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.40
Blueberry
#464196
ΔE00 4.87
Twilight
#4E518B
ΔE00 6.45
Dusk
#4E5481
ΔE00 7.79
Cobalt (survey)
#1E488F
ΔE00 8.98
Sapphire (survey)
#2138AB
ΔE00 9.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403D7B #787B3D
analogous
#3D597B #403D7B #5F3D7B
triadic
#403D7B #7B403D #3D7B40
tetradic
#403D7B #7B3D59 #787B3D #3D7B5F
square
#403D7B #7B3D59 #787B3D #3D7B5F
split-complementary
#403D7B #7B5F3D #597B3D
monochromatic
#151429 #2B2952 #403D7B #5551A4 #7A77BC
Accessibility & contrast
On white
9.67
#403D7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#403D7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403D7B
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403D7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403D7B | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22477D
Deuteranopia (green-blind)
#1F427A
Tritanopia (blue-blind)
#2C4A56
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #403d7b; /* rgb */ color: rgb(64, 61, 123); /* oklch */ color: oklch(39.6% 0.102 282.9);
Tailwind
colors: {
custom: {
50: '#7972a1',
500: '#403d7b',
950: '#000000',
},
}SCSS
$custom: #403d7b; $custom-light: #7972a1; $custom-dark: #000000;
JSON
{
"hex": "#403d7b",
"rgb": {
"r": 64,
"g": 61,
"b": 123
},
"hsl": {
"h": 242.903,
"s": 33.696,
"l": 36.078
},
"oklch": {
"l": 0.39584,
"c": 0.10202,
"h": 282.9
},
"luminance": 0.05858
}Semantic roles & 50–950 ramp
primary
#403D7B
secondary
#A3A66E
accent
#CA5EC5
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09080F
muted
#7B7B7F