#4E51A2#4E51A2
#4E51A2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.128 H 278.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51A2 |
|---|---|
| RGB | rgb(78, 81, 162) |
| HSL | hsl(238, 35%, 47%) |
| HSV | hsv(238, 52%, 64%) |
| CMYK | cmyk(51.9%, 50%, 0%, 36.5%) |
| CIE-LAB | lab(38.04, 22.03, -44.43) |
| CIE-LCH | lch(38.04, 49.59, 296.37°) |
| OKLab | oklab(47.45% 0.0194 -0.1266) |
| OKLCH | oklch(47.45% 0.128 278.7) |
| XYZ | xyz(12.6039, 10.1125, 35.4632) |
| Luminance | 0.1011 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 4.35
Blueberry
#464196
ΔE00 5.10
Ocean Blue
#4F42B5
ΔE00 5.96
Iris
#6258C4
ΔE00 6.36
Dusky Blue
#475F94
ΔE00 6.53
Dusk
#4E5481
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51A2 #A29F4E
analogous
#4E7BA2 #4E51A2 #754EA2
triadic
#4E51A2 #A24E51 #51A24E
tetradic
#4E51A2 #A24E7B #A29F4E #4EA275
square
#4E51A2 #A24E7B #A29F4E #4EA275
split-complementary
#4E51A2 #A2754E #7BA24E
monochromatic
#26284F #3A3C79 #4E51A2 #7275BB #9B9DCF
Accessibility & contrast
On white
6.95
#4E51A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#4E51A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51A2
6.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51A2 | 1.00 | 6.95 | 3.02 | 6.95 |
| #FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#2356A0
Tritanopia (blue-blind)
#2C6372
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #4e51a2; /* rgb */ color: rgb(78, 81, 162); /* oklch */ color: oklch(47.4% 0.128 278.7);
Tailwind
colors: {
custom: {
50: '#8681be',
500: '#4e51a2',
950: '#000000',
},
}SCSS
$custom: #4e51a2; $custom-light: #8681be; $custom-dark: #000000;
JSON
{
"hex": "#4e51a2",
"rgb": {
"r": 78,
"g": 81,
"b": 162
},
"hsl": {
"h": 237.857,
"s": 35,
"l": 47.059
},
"oklch": {
"l": 0.4745,
"c": 0.12805,
"h": 278.7
},
"luminance": 0.10113
}Semantic roles & 50–950 ramp
primary
#4E51A2
secondary
#BCBA90
accent
#C75DCB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81