#40396F#40396F
#40396F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.9% C 0.090 H 287.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #40396F |
|---|---|
| RGB | rgb(64, 57, 111) |
| HSL | hsl(248, 32%, 33%) |
| HSV | hsv(248, 49%, 44%) |
| CMYK | cmyk(42.3%, 48.6%, 0%, 56.5%) |
| CIE-LAB | lab(27.20, 17.71, -30.38) |
| CIE-LCH | lch(27.20, 35.17, 300.24°) |
| OKLab | oklab(37.94% 0.0267 -0.0859) |
| OKLCH | oklch(37.94% 0.09 287.3) |
| XYZ | xyz(6.4459, 5.1637, 15.6929) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.47
Blueberry
#464196
ΔE00 7.36
Twilight
#4E518B
ΔE00 8.18
Dusk
#4E5481
ΔE00 8.91
Navy Blue
#1B2A4A
ΔE00 9.77
Marine
#042E60
ΔE00 10.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40396F #686F39
analogous
#394D6F #40396F #5B396F
triadic
#40396F #6F4039 #396F40
tetradic
#40396F #6F394D #686F39 #396F5B
square
#40396F #6F394D #686F39 #396F5B
split-complementary
#40396F #6F5B39 #4D6F39
monochromatic
#110F1E #292447 #40396F #574E97 #776EB4
Accessibility & contrast
On white
10.33
#40396F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#40396F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40396F
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40396F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40396F | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#254271
Deuteranopia (green-blind)
#243F6E
Tritanopia (blue-blind)
#33444E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #40396f; /* rgb */ color: rgb(64, 57, 111); /* oklch */ color: oklch(37.9% 0.090 287.3);
Tailwind
colors: {
custom: {
50: '#776f98',
500: '#40396f',
950: '#000000',
},
}SCSS
$custom: #40396f; $custom-light: #776f98; $custom-dark: #000000;
JSON
{
"hex": "#40396f",
"rgb": {
"r": 64,
"g": 57,
"b": 111
},
"hsl": {
"h": 247.778,
"s": 32.143,
"l": 32.941
},
"oklch": {
"l": 0.37943,
"c": 0.08994,
"h": 287.3
},
"luminance": 0.05164
}Semantic roles & 50–950 ramp
primary
#40396F
secondary
#979E66
accent
#C85FBB
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E