#4E51B9#4E51B9
#4E51B9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.161 H 277.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51B9 |
|---|---|
| RGB | rgb(78, 81, 185) |
| HSL | hsl(238, 43%, 52%) |
| HSV | hsv(238, 58%, 73%) |
| CMYK | cmyk(57.8%, 56.2%, 0%, 27.5%) |
| CIE-LAB | lab(39.59, 29.61, -55.55) |
| CIE-LCH | lch(39.59, 62.95, 298.06°) |
| OKLab | oklab(49.1% 0.0208 -0.1593) |
| OKLCH | oklch(49.1% 0.161 277.5) |
| XYZ | xyz(14.8385, 11.0063, 47.2320) |
| Luminance | 0.1101 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.07
Ocean Blue
#4F42B5
ΔE00 4.63
Warm Blue
#4B57DB
ΔE00 5.01
Slate Blue
#6A5ACD
ΔE00 5.97
Blue Blue
#2242C7
ΔE00 5.97
Bluey Purple
#6241C7
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51B9 #B9B64E
analogous
#4E87B9 #4E51B9 #814EB9
triadic
#4E51B9 #B94E51 #51B94E
tetradic
#4E51B9 #B94E87 #B9B64E #4EB981
square
#4E51B9 #B94E87 #B9B64E #4EB981
split-complementary
#4E51B9 #B9814E #87B94E
monochromatic
#282A65 #393C91 #4E51B9 #7A7CCA #A6A7DC
Accessibility & contrast
On white
6.56
#4E51B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.20
#4E51B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51B9
6.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51B9 | 1.00 | 6.56 | 3.20 | 6.56 |
| #FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#09697D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4e51b9; /* rgb */ color: rgb(78, 81, 185); /* oklch */ color: oklch(49.1% 0.161 277.5);
Tailwind
colors: {
custom: {
50: '#8982cf',
500: '#4e51b9',
950: '#000000',
},
}SCSS
$custom: #4e51b9; $custom-light: #8982cf; $custom-dark: #000000;
JSON
{
"hex": "#4e51b9",
"rgb": {
"r": 78,
"g": 81,
"b": 185
},
"hsl": {
"h": 238.318,
"s": 43.32,
"l": 51.569
},
"oklch": {
"l": 0.49104,
"c": 0.16065,
"h": 277.5
},
"luminance": 0.11007
}Semantic roles & 50–950 ramp
primary
#4E51B9
secondary
#C9C89A
accent
#D055D3
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82