#4E51BB#4E51BB
#4E51BB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.163 H 277.3°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51BB |
|---|---|
| RGB | rgb(78, 81, 187) |
| HSL | hsl(238, 44%, 52%) |
| HSV | hsv(238, 58%, 73%) |
| CMYK | cmyk(58.3%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(39.73, 30.28, -56.49) |
| CIE-LCH | lch(39.73, 64.09, 298.19°) |
| OKLab | oklab(49.26% 0.0209 -0.1621) |
| OKLCH | oklch(49.26% 0.163 277.3) |
| XYZ | xyz(15.0511, 11.0913, 48.3518) |
| Luminance | 0.1109 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.96
Ocean Blue
#4F42B5
ΔE00 4.64
Warm Blue
#4B57DB
ΔE00 4.74
Slate Blue
#6A5ACD
ΔE00 5.82
Blue Blue
#2242C7
ΔE00 5.88
Bluey Purple
#6241C7
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51BB #BBB84E
analogous
#4E87BB #4E51BB #824EBB
triadic
#4E51BB #BB4E51 #51BB4E
tetradic
#4E51BB #BB4E87 #BBB84E #4EBB82
square
#4E51BB #BB4E87 #BBB84E #4EBB82
split-complementary
#4E51BB #BB824E #87BB4E
monochromatic
#282967 #393B93 #4E51BB #7A7CCC #A6A8DD
Accessibility & contrast
On white
6.52
#4E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#4E51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51BB
6.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51BB | 1.00 | 6.52 | 3.22 | 6.52 |
| #FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#026A7E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #4e51bb; /* rgb */ color: rgb(78, 81, 187); /* oklch */ color: oklch(49.3% 0.163 277.3);
Tailwind
colors: {
custom: {
50: '#8982d0',
500: '#4e51bb',
950: '#000000',
},
}SCSS
$custom: #4e51bb; $custom-light: #8982d0; $custom-dark: #000000;
JSON
{
"hex": "#4e51bb",
"rgb": {
"r": 78,
"g": 81,
"b": 187
},
"hsl": {
"h": 238.349,
"s": 44.49,
"l": 51.961
},
"oklch": {
"l": 0.49255,
"c": 0.1634,
"h": 277.3
},
"luminance": 0.11092
}Semantic roles & 50–950 ramp
primary
#4E51BB
secondary
#CAC99B
accent
#D154D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82