#403D7C#403D7C
#403D7C is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.7% C 0.104 H 282.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #403D7C |
|---|---|
| RGB | rgb(64, 61, 124) |
| HSL | hsl(243, 34%, 36%) |
| HSV | hsv(243, 51%, 49%) |
| CMYK | cmyk(48.4%, 50.8%, 0%, 51.4%) |
| CIE-LAB | lab(29.11, 19.24, -35.54) |
| CIE-LCH | lch(29.11, 40.42, 298.42°) |
| OKLab | oklab(39.65% 0.0229 -0.101) |
| OKLCH | oklch(39.65% 0.104 282.7) |
| XYZ | xyz(7.4201, 5.8824, 19.8093) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.22
Blueberry
#464196
ΔE00 4.67
Twilight
#4E518B
ΔE00 6.44
Dusk
#4E5481
ΔE00 7.84
Cobalt (survey)
#1E488F
ΔE00 8.89
Sapphire (survey)
#2138AB
ΔE00 9.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403D7C #797C3D
analogous
#3D5A7C #403D7C #603D7C
triadic
#403D7C #7C403D #3D7C40
tetradic
#403D7C #7C3D5A #797C3D #3D7C60
square
#403D7C #7C3D5A #797C3D #3D7C60
split-complementary
#403D7C #7C603D #5A7C3D
monochromatic
#16152A #2B2953 #403D7C #5551A5 #7A77BC
Accessibility & contrast
On white
9.65
#403D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#403D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403D7C
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403D7C | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#1E427B
Tritanopia (blue-blind)
#2C4A56
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #403d7c; /* rgb */ color: rgb(64, 61, 124); /* oklch */ color: oklch(39.7% 0.104 282.7);
Tailwind
colors: {
custom: {
50: '#7972a2',
500: '#403d7c',
950: '#000000',
},
}SCSS
$custom: #403d7c; $custom-light: #7972a2; $custom-dark: #000000;
JSON
{
"hex": "#403d7c",
"rgb": {
"r": 64,
"g": 61,
"b": 124
},
"hsl": {
"h": 242.857,
"s": 34.054,
"l": 36.275
},
"oklch": {
"l": 0.39654,
"c": 0.10355,
"h": 282.7
},
"luminance": 0.05883
}Semantic roles & 50–950 ramp
primary
#403D7C
secondary
#A4A66F
accent
#CA5EC5
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09080F
muted
#7B7B7F