#40366F#40366F
#40366F is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.3% C 0.095 H 289.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #40366F |
|---|---|
| RGB | rgb(64, 54, 111) |
| HSL | hsl(251, 35%, 32%) |
| HSV | hsv(251, 51%, 44%) |
| CMYK | cmyk(42.3%, 51.4%, 0%, 56.5%) |
| CIE-LAB | lab(26.38, 19.71, -31.69) |
| CIE-LCH | lch(26.38, 37.32, 301.88°) |
| OKLab | oklab(37.33% 0.0309 -0.0897) |
| OKLCH | oklch(37.33% 0.095 289) |
| XYZ | xyz(6.3020, 4.8758, 15.6449) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.35
Blueberry
#464196
ΔE00 7.42
Twilight
#4E518B
ΔE00 8.98
Dusk
#4E5481
ΔE00 9.88
Navy Blue
#1B2A4A
ΔE00 9.94
Midnight Blue
#191970
ΔE00 9.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40366F #656F36
analogous
#36496F #40366F #5C366F
triadic
#40366F #6F4036 #366F40
tetradic
#40366F #6F3649 #656F36 #366F5C
square
#40366F #6F3649 #656F36 #366F5C
split-complementary
#40366F #6F5C36 #496F36
monochromatic
#110E1D #282246 #40366F #584A98 #7769B6
Accessibility & contrast
On white
10.63
#40366F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#40366F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40366F
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40366F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40366F | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#204071
Deuteranopia (green-blind)
#203D6E
Tritanopia (blue-blind)
#33424D
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #40366f; /* rgb */ color: rgb(64, 54, 111); /* oklch */ color: oklch(37.3% 0.095 289.0);
Tailwind
colors: {
custom: {
50: '#786d99',
500: '#40366f',
950: '#000000',
},
}SCSS
$custom: #40366f; $custom-light: #786d99; $custom-dark: #000000;
JSON
{
"hex": "#40366f",
"rgb": {
"r": 64,
"g": 54,
"b": 111
},
"hsl": {
"h": 250.526,
"s": 34.545,
"l": 32.353
},
"oklch": {
"l": 0.37328,
"c": 0.0949,
"h": 289
},
"luminance": 0.04876
}Semantic roles & 50–950 ramp
primary
#40366F
secondary
#949F62
accent
#CB5DB7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070E
muted
#7B7A7E