#4E51D5#4E51D5
#4E51D5 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.198 H 275.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51D5 |
|---|---|
| RGB | rgb(78, 81, 213) |
| HSL | hsl(239, 62%, 57%) |
| HSV | hsv(239, 63%, 84%) |
| CMYK | cmyk(63.4%, 62%, 0%, 16.5%) |
| CIE-LAB | lab(41.70, 38.90, -68.36) |
| CIE-LCH | lch(41.70, 78.66, 299.64°) |
| OKLab | oklab(51.33% 0.0203 -0.1969) |
| OKLCH | oklch(51.33% 0.198 275.9) |
| XYZ | xyz(18.0906, 12.3072, 64.3601) |
| Luminance | 0.1231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.09
Iris
#6258C4
ΔE00 4.14
Slate Blue
#6A5ACD
ΔE00 4.96
Dark Periwinkle
#665FD1
ΔE00 5.23
Light Indigo
#6D5ACF
ΔE00 5.36
Electric Blue
#0652FF
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51D5 #D5D24E
analogous
#4E94D5 #4E51D5 #8F4ED5
triadic
#4E51D5 #D54E51 #51D54E
tetradic
#4E51D5 #D54E94 #D5D24E #4ED58F
square
#4E51D5 #D54E94 #D5D24E #4ED58F
split-complementary
#4E51D5 #D58F4E #94D54E
monochromatic
#202388 #2C2FBA #4E51D5 #7F82E1 #B1B2EC
Accessibility & contrast
On white
6.07
#4E51D5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#4E51D5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51D5
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51D5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51D5 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #4e51d5; /* rgb */ color: rgb(78, 81, 213); /* oklch */ color: oklch(51.3% 0.198 275.9);
Tailwind
colors: {
custom: {
50: '#8e82e3',
500: '#4e51d5',
950: '#000000',
},
}SCSS
$custom: #4e51d5; $custom-light: #8e82e3; $custom-dark: #000000;
JSON
{
"hex": "#4e51d5",
"rgb": {
"r": 78,
"g": 81,
"b": 213
},
"hsl": {
"h": 238.667,
"s": 61.644,
"l": 57.059
},
"oklch": {
"l": 0.51325,
"c": 0.198,
"h": 275.9
},
"luminance": 0.12309
}Semantic roles & 50–950 ramp
primary
#4E51D5
secondary
#DBDAA4
accent
#E143E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84