#5251E6#5251E6
#5251E6 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.219 H 276.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5251E6 |
|---|---|
| RGB | rgb(82, 81, 230) |
| HSL | hsl(240, 75%, 61%) |
| HSV | hsv(240, 65%, 90%) |
| CMYK | cmyk(64.3%, 64.8%, 0%, 9.8%) |
| CIE-LAB | lab(43.35, 45.03, -75.36) |
| CIE-LCH | lch(43.35, 87.79, 300.86°) |
| OKLab | oklab(53.02% 0.0237 -0.2174) |
| OKLCH | oklch(53.02% 0.219 276.2) |
| XYZ | xyz(20.7004, 13.3901, 76.3412) |
| Luminance | 0.1339 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.60
Electric Blue
#0652FF
ΔE00 4.60
Purpleish Blue
#6140EF
ΔE00 4.60
Slate Blue
#6A5ACD
ΔE00 5.12
Iris
#6258C4
ΔE00 5.22
Dark Periwinkle
#665FD1
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5251E6 #E5E651
analogous
#519AE6 #5251E6 #9C51E6
triadic
#5251E6 #E65251 #51E652
tetradic
#5251E6 #E6519A #E5E651 #51E69C
square
#5251E6 #E6519A #E5E651 #51E69C
split-complementary
#5251E6 #E69C51 #9AE651
monochromatic
#1918A5 #211FDA #5251E6 #8787EE #BCBCF5
Accessibility & contrast
On white
5.71
#5251E6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#5251E6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5251E6
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5251E6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5251E6 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DEB
Deuteranopia (green-blind)
#0060E3
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5251e6; /* rgb */ color: rgb(82, 81, 230); /* oklch */ color: oklch(53.0% 0.219 276.2);
Tailwind
colors: {
custom: {
50: '#9382ef',
500: '#5251e6',
950: '#000000',
},
}SCSS
$custom: #5251e6; $custom-light: #9382ef; $custom-dark: #000000;
JSON
{
"hex": "#5251e6",
"rgb": {
"r": 82,
"g": 81,
"b": 230
},
"hsl": {
"h": 240.403,
"s": 74.874,
"l": 60.98
},
"oklch": {
"l": 0.53023,
"c": 0.21865,
"h": 276.2
},
"luminance": 0.13392
}Semantic roles & 50–950 ramp
primary
#5251E6
secondary
#E5E5AD
accent
#D70ED6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85