#4E51BA#4E51BA
#4E51BA is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.2% C 0.162 H 277.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51BA |
|---|---|
| RGB | rgb(78, 81, 186) |
| HSL | hsl(238, 44%, 52%) |
| HSV | hsv(238, 58%, 73%) |
| CMYK | cmyk(58.1%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(39.66, 29.94, -56.02) |
| CIE-LCH | lch(39.66, 63.52, 298.12°) |
| OKLab | oklab(49.18% 0.0209 -0.1607) |
| OKLCH | oklch(49.18% 0.162 277.4) |
| XYZ | xyz(14.9444, 11.0487, 47.7900) |
| Luminance | 0.1105 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.01
Ocean Blue
#4F42B5
ΔE00 4.64
Warm Blue
#4B57DB
ΔE00 4.88
Slate Blue
#6A5ACD
ΔE00 5.89
Blue Blue
#2242C7
ΔE00 5.92
Bluey Purple
#6241C7
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51BA #BAB74E
analogous
#4E87BA #4E51BA #814EBA
triadic
#4E51BA #BA4E51 #51BA4E
tetradic
#4E51BA #BA4E87 #BAB74E #4EBA81
square
#4E51BA #BA4E87 #BAB74E #4EBA81
split-complementary
#4E51BA #BA814E #87BA4E
monochromatic
#282966 #393B92 #4E51BA #7A7CCB #A6A8DC
Accessibility & contrast
On white
6.54
#4E51BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#4E51BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51BA
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51BA | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#056A7D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4e51ba; /* rgb */ color: rgb(78, 81, 186); /* oklch */ color: oklch(49.2% 0.162 277.4);
Tailwind
colors: {
custom: {
50: '#8982cf',
500: '#4e51ba',
950: '#000000',
},
}SCSS
$custom: #4e51ba; $custom-light: #8982cf; $custom-dark: #000000;
JSON
{
"hex": "#4e51ba",
"rgb": {
"r": 78,
"g": 81,
"b": 186
},
"hsl": {
"h": 238.333,
"s": 43.902,
"l": 51.765
},
"oklch": {
"l": 0.49179,
"c": 0.16202,
"h": 277.4
},
"luminance": 0.1105
}Semantic roles & 50–950 ramp
primary
#4E51BA
secondary
#CAC89A
accent
#D054D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82