#4D51E7#4D51E7
#4D51E7 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.8% C 0.221 H 274.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #4D51E7 |
|---|---|
| RGB | rgb(77, 81, 231) |
| HSL | hsl(238, 76%, 60%) |
| HSV | hsv(238, 67%, 91%) |
| CMYK | cmyk(66.7%, 64.9%, 0%, 9.4%) |
| CIE-LAB | lab(43.11, 44.70, -76.32) |
| CIE-LCH | lch(43.11, 88.45, 300.35°) |
| OKLab | oklab(52.79% 0.0179 -0.2203) |
| OKLCH | oklch(52.79% 0.221 274.6) |
| XYZ | xyz(20.4220, 13.2303, 77.0633) |
| Luminance | 0.1323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.37
Electric Blue
#0652FF
ΔE00 4.08
Purpleish Blue
#6140EF
ΔE00 4.92
Iris
#6258C4
ΔE00 5.53
Slate Blue
#6A5ACD
ΔE00 5.56
Dark Periwinkle
#665FD1
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D51E7 #E7E34D
analogous
#4D9EE7 #4D51E7 #964DE7
triadic
#4D51E7 #E74D51 #51E74D
tetradic
#4D51E7 #E74D9E #E7E34D #4DE796
square
#4D51E7 #E74D9E #E7E34D #4DE796
split-complementary
#4D51E7 #E7964D #9EE74D
monochromatic
#161AA4 #1D22D9 #4D51E7 #8386EE #B9BAF6
Accessibility & contrast
On white
5.76
#4D51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#4D51E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4D51E7
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D51E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D51E7 | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #4d51e7; /* rgb */ color: rgb(77, 81, 231); /* oklch */ color: oklch(52.8% 0.221 274.6);
Tailwind
colors: {
custom: {
50: '#9182f0',
500: '#4d51e7',
950: '#000000',
},
}SCSS
$custom: #4d51e7; $custom-light: #9182f0; $custom-dark: #000000;
JSON
{
"hex": "#4d51e7",
"rgb": {
"r": 77,
"g": 81,
"b": 231
},
"hsl": {
"h": 238.442,
"s": 76.238,
"l": 60.392
},
"oklch": {
"l": 0.52793,
"c": 0.22104,
"h": 274.6
},
"luminance": 0.13232
}Semantic roles & 50–950 ramp
primary
#4D51E7
secondary
#E5E4AA
accent
#D30DD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85