#4C51E7#4C51E7
#4C51E7 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.221 H 274.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #4C51E7 |
|---|---|
| RGB | rgb(76, 81, 231) |
| HSL | hsl(238, 76%, 60%) |
| HSV | hsv(238, 67%, 91%) |
| CMYK | cmyk(67.1%, 64.9%, 0%, 9.4%) |
| CIE-LAB | lab(43.05, 44.57, -76.43) |
| CIE-LCH | lch(43.05, 88.47, 300.25°) |
| OKLab | oklab(52.73% 0.0168 -0.2206) |
| OKLCH | oklch(52.73% 0.221 274.3) |
| XYZ | xyz(20.3419, 13.1890, 77.0595) |
| Luminance | 0.1319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.33
Electric Blue
#0652FF
ΔE00 3.99
Purpleish Blue
#6140EF
ΔE00 4.99
Iris
#6258C4
ΔE00 5.57
Dark Periwinkle
#665FD1
ΔE00 5.62
Slate Blue
#6A5ACD
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C51E7 #E7E24C
analogous
#4C9EE7 #4C51E7 #954CE7
triadic
#4C51E7 #E74C51 #51E74C
tetradic
#4C51E7 #E74C9E #E7E24C #4CE795
square
#4C51E7 #E74C9E #E7E24C #4CE795
split-complementary
#4C51E7 #E7954C #9EE74C
monochromatic
#161AA3 #1D23D9 #4C51E7 #8285EE #B8BAF5
Accessibility & contrast
On white
5.77
#4C51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#4C51E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C51E7
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C51E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C51E7 | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 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: #4c51e7; /* rgb */ color: rgb(76, 81, 231); /* oklch */ color: oklch(52.7% 0.221 274.3);
Tailwind
colors: {
custom: {
50: '#9082f0',
500: '#4c51e7',
950: '#000000',
},
}SCSS
$custom: #4c51e7; $custom-light: #9082f0; $custom-dark: #000000;
JSON
{
"hex": "#4c51e7",
"rgb": {
"r": 76,
"g": 81,
"b": 231
},
"hsl": {
"h": 238.065,
"s": 76.355,
"l": 60.196
},
"oklch": {
"l": 0.52732,
"c": 0.22129,
"h": 274.3
},
"luminance": 0.13191
}Semantic roles & 50–950 ramp
primary
#4C51E7
secondary
#E5E3AA
accent
#D20DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85