#403E7A#403E7A
#403E7A is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.7% C 0.099 H 282.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #403E7A |
|---|---|
| RGB | rgb(64, 62, 122) |
| HSL | hsl(242, 33%, 36%) |
| HSV | hsv(242, 49%, 48%) |
| CMYK | cmyk(47.5%, 49.2%, 0%, 52.2%) |
| CIE-LAB | lab(29.26, 17.92, -34.05) |
| CIE-LCH | lch(29.26, 38.48, 297.75°) |
| OKLab | oklab(39.72% 0.0213 -0.0966) |
| OKLCH | oklch(39.72% 0.099 282.4) |
| XYZ | xyz(7.3488, 5.9400, 19.1679) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.77
Blueberry
#464196
ΔE00 5.12
Twilight
#4E518B
ΔE00 6.19
Dusk
#4E5481
ΔE00 7.42
Cobalt (survey)
#1E488F
ΔE00 8.86
Sapphire (survey)
#2138AB
ΔE00 9.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#403E7A #787A3E
analogous
#3E5A7A #403E7A #5E3E7A
triadic
#403E7A #7A403E #3E7A40
tetradic
#403E7A #7A3E5A #787A3E #3E7A5E
square
#403E7A #7A3E5A #787A3E #3E7A5E
split-complementary
#403E7A #7A5E3E #5A7A3E
monochromatic
#151529 #2B2951 #403E7A #5553A3 #7A78BA
Accessibility & contrast
On white
9.60
#403E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#403E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #403E7A
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##403E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##403E7A | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#224379
Tritanopia (blue-blind)
#2D4B56
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #403e7a; /* rgb */ color: rgb(64, 62, 122); /* oklch */ color: oklch(39.7% 0.099 282.4);
Tailwind
colors: {
custom: {
50: '#7973a1',
500: '#403e7a',
950: '#000000',
},
}SCSS
$custom: #403e7a; $custom-light: #7973a1; $custom-dark: #000000;
JSON
{
"hex": "#403e7a",
"rgb": {
"r": 64,
"g": 62,
"b": 122
},
"hsl": {
"h": 242,
"s": 32.609,
"l": 36.078
},
"oklch": {
"l": 0.39723,
"c": 0.09895,
"h": 282.4
},
"luminance": 0.0594
}Semantic roles & 50–950 ramp
primary
#403E7A
secondary
#A3A56F
accent
#C95FC5
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09080F
muted
#7B7B7E