#4E4787#4E4787
#4E4787 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.7% C 0.103 H 286.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #4E4787 |
|---|---|
| RGB | rgb(78, 71, 135) |
| HSL | hsl(247, 31%, 40%) |
| HSV | hsv(247, 47%, 53%) |
| CMYK | cmyk(42.2%, 47.4%, 0%, 47.1%) |
| CIE-LAB | lab(33.72, 19.88, -34.96) |
| CIE-LCH | lch(33.72, 40.21, 299.63°) |
| OKLab | oklab(43.65% 0.0289 -0.0988) |
| OKLCH | oklch(43.65% 0.103 286.3) |
| XYZ | xyz(9.7671, 7.8751, 23.9224) |
| Luminance | 0.0788 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.62
Darkslateblue
#483D8B
ΔE00 3.69
Blueberry
#464196
ΔE00 4.29
Dusk
#4E5481
ΔE00 5.58
Ocean Blue
#4F42B5
ΔE00 8.36
Rebeccapurple
#663399
ΔE00 9.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E4787 #808747
analogous
#476087 #4E4787 #6E4787
triadic
#4E4787 #874E47 #47874E
tetradic
#4E4787 #874760 #808747 #47876E
square
#4E4787 #874760 #808747 #47876E
split-complementary
#4E4787 #876E47 #608747
monochromatic
#201D37 #37325F #4E4787 #6860AB #8E88C0
Accessibility & contrast
On white
8.16
#4E4787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#4E4787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E4787
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E4787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E4787 | 1.00 | 8.16 | 2.58 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#3E5460
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #4e4787; /* rgb */ color: rgb(78, 71, 135); /* oklch */ color: oklch(43.7% 0.103 286.3);
Tailwind
colors: {
custom: {
50: '#837aaa',
500: '#4e4787',
950: '#000000',
},
}SCSS
$custom: #4e4787; $custom-light: #837aaa; $custom-dark: #000000;
JSON
{
"hex": "#4e4787",
"rgb": {
"r": 78,
"g": 71,
"b": 135
},
"hsl": {
"h": 246.563,
"s": 31.068,
"l": 40.392
},
"oklch": {
"l": 0.43652,
"c": 0.10298,
"h": 286.3
},
"luminance": 0.07875
}Semantic roles & 50–950 ramp
primary
#4E4787
secondary
#A7AC7E
accent
#C761BC
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F