#4E51D6#4E51D6
#4E51D6 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.199 H 275.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51D6 |
|---|---|
| RGB | rgb(78, 81, 214) |
| HSL | hsl(239, 62%, 57%) |
| HSV | hsv(239, 64%, 84%) |
| CMYK | cmyk(63.6%, 62.1%, 0%, 16.1%) |
| CIE-LAB | lab(41.78, 39.24, -68.81) |
| CIE-LCH | lch(41.78, 79.21, 299.69°) |
| OKLab | oklab(51.41% 0.0203 -0.1983) |
| OKLCH | oklch(51.41% 0.199 275.8) |
| XYZ | xyz(18.2179, 12.3581, 65.0306) |
| Luminance | 0.1236 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.04
Iris
#6258C4
ΔE00 4.20
Slate Blue
#6A5ACD
ΔE00 4.96
Dark Periwinkle
#665FD1
ΔE00 5.22
Light Indigo
#6D5ACF
ΔE00 5.36
Electric Blue
#0652FF
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51D6 #D6D34E
analogous
#4E95D6 #4E51D6 #8F4ED6
triadic
#4E51D6 #D64E51 #51D64E
tetradic
#4E51D6 #D64E95 #D6D34E #4ED68F
square
#4E51D6 #D64E95 #D6D34E #4ED68F
split-complementary
#4E51D6 #D68F4E #95D64E
monochromatic
#20228A #2B2FBB #4E51D6 #8082E2 #B1B3ED
Accessibility & contrast
On white
6.05
#4E51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#4E51D6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51D6
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51D6 | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #4e51d6; /* rgb */ color: rgb(78, 81, 214); /* oklch */ color: oklch(51.4% 0.199 275.8);
Tailwind
colors: {
custom: {
50: '#8e82e4',
500: '#4e51d6',
950: '#000000',
},
}SCSS
$custom: #4e51d6; $custom-light: #8e82e4; $custom-dark: #000000;
JSON
{
"hex": "#4e51d6",
"rgb": {
"r": 78,
"g": 81,
"b": 214
},
"hsl": {
"h": 238.676,
"s": 62.385,
"l": 57.255
},
"oklch": {
"l": 0.51408,
"c": 0.19929,
"h": 275.8
},
"luminance": 0.1236
}Semantic roles & 50–950 ramp
primary
#4E51D6
secondary
#DBDAA4
accent
#E242E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84