#5E51D9#5E51D9
#5E51D9 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.8% C 0.200 H 281.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #5E51D9 |
|---|---|
| RGB | rgb(94, 81, 217) |
| HSL | hsl(246, 64%, 58%) |
| HSV | hsv(246, 63%, 85%) |
| CMYK | cmyk(56.7%, 62.7%, 0%, 14.9%) |
| CIE-LAB | lab(43.17, 42.74, -68.21) |
| CIE-LCH | lch(43.17, 80.49, 302.07°) |
| OKLab | oklab(52.8% 0.0395 -0.196) |
| OKLCH | oklch(52.8% 0.2 281.4) |
| XYZ | xyz(20.0790, 13.2730, 67.1361) |
| Luminance | 0.1327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.46
Slate Blue
#6A5ACD
ΔE00 3.48
Iris
#6258C4
ΔE00 3.58
Light Indigo
#6D5ACF
ΔE00 3.66
Dark Periwinkle
#665FD1
ΔE00 4.32
Purpleish Blue
#6140EF
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E51D9 #CCD951
analogous
#5188D9 #5E51D9 #A251D9
triadic
#5E51D9 #D95E51 #51D95E
tetradic
#5E51D9 #D95188 #CCD951 #51D9A2
square
#5E51D9 #D95188 #CCD951 #51D9A2
split-complementary
#5E51D9 #D9A251 #88D951
monochromatic
#2A1F90 #392AC2 #5E51D9 #8C83E4 #BBB5EF
Accessibility & contrast
On white
5.75
#5E51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#5E51D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5E51D9
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E51D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E51D9 | 1.00 | 5.75 | 3.65 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0061D6
Tritanopia (blue-blind)
#1A738D
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5e51d9; /* rgb */ color: rgb(94, 81, 217); /* oklch */ color: oklch(52.8% 0.200 281.4);
Tailwind
colors: {
custom: {
50: '#9783e6',
500: '#5e51d9',
950: '#000000',
},
}SCSS
$custom: #5e51d9; $custom-light: #9783e6; $custom-dark: #000000;
JSON
{
"hex": "#5e51d9",
"rgb": {
"r": 94,
"g": 81,
"b": 217
},
"hsl": {
"h": 245.735,
"s": 64.151,
"l": 58.431
},
"oklch": {
"l": 0.52795,
"c": 0.19998,
"h": 281.4
},
"luminance": 0.13274
}Semantic roles & 50–950 ramp
primary
#5E51D9
secondary
#D9DEA8
accent
#E741D7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0A16
muted
#7E7C84