#4E51BC#4E51BC
#4E51BC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.165 H 277.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #4E51BC |
|---|---|
| RGB | rgb(78, 81, 188) |
| HSL | hsl(238, 45%, 52%) |
| HSV | hsv(238, 59%, 74%) |
| CMYK | cmyk(58.5%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(39.81, 30.61, -56.96) |
| CIE-LCH | lch(39.81, 64.66, 298.25°) |
| OKLab | oklab(49.33% 0.0209 -0.1634) |
| OKLCH | oklch(49.33% 0.165 277.3) |
| XYZ | xyz(15.1585, 11.1343, 48.9175) |
| Luminance | 0.1114 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.91
Warm Blue
#4B57DB
ΔE00 4.61
Ocean Blue
#4F42B5
ΔE00 4.66
Slate Blue
#6A5ACD
ΔE00 5.75
Blue Blue
#2242C7
ΔE00 5.84
Dark Periwinkle
#665FD1
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E51BC #BCB94E
analogous
#4E88BC #4E51BC #824EBC
triadic
#4E51BC #BC4E51 #51BC4E
tetradic
#4E51BC #BC4E88 #BCB94E #4EBC82
square
#4E51BC #BC4E88 #BCB94E #4EBC82
split-complementary
#4E51BC #BC824E #88BC4E
monochromatic
#272968 #383B95 #4E51BC #7A7DCD #A7A8DE
Accessibility & contrast
On white
6.51
#4E51BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#4E51BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4E51BC
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E51BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E51BC | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #4e51bc; /* rgb */ color: rgb(78, 81, 188); /* oklch */ color: oklch(49.3% 0.165 277.3);
Tailwind
colors: {
custom: {
50: '#8a82d1',
500: '#4e51bc',
950: '#000000',
},
}SCSS
$custom: #4e51bc; $custom-light: #8a82d1; $custom-dark: #000000;
JSON
{
"hex": "#4e51bc",
"rgb": {
"r": 78,
"g": 81,
"b": 188
},
"hsl": {
"h": 238.364,
"s": 45.082,
"l": 52.157
},
"oklch": {
"l": 0.49331,
"c": 0.16476,
"h": 277.3
},
"luminance": 0.11135
}Semantic roles & 50–950 ramp
primary
#4E51BC
secondary
#CBCA9B
accent
#D153D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82