#5A51DB#5A51DB
#5A51DB is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.203 H 279.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5A51DB |
|---|---|
| RGB | rgb(90, 81, 219) |
| HSL | hsl(244, 66%, 59%) |
| HSV | hsv(244, 63%, 86%) |
| CMYK | cmyk(58.9%, 63%, 0%, 14.1%) |
| CIE-LAB | lab(43.02, 42.70, -69.61) |
| CIE-LCH | lch(43.02, 81.66, 301.53°) |
| OKLab | oklab(52.66% 0.0343 -0.2003) |
| OKLCH | oklch(52.66% 0.203 279.7) |
| XYZ | xyz(19.9410, 13.1716, 68.4957) |
| Luminance | 0.1317 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.96
Iris
#6258C4
ΔE00 3.87
Slate Blue
#6A5ACD
ΔE00 3.90
Light Indigo
#6D5ACF
ΔE00 4.12
Dark Periwinkle
#665FD1
ΔE00 4.50
Purpleish Blue
#6140EF
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A51DB #D2DB51
analogous
#518DDB #5A51DB #9F51DB
triadic
#5A51DB #DB5A51 #51DB5A
tetradic
#5A51DB #DB518D #D2DB51 #51DB9F
square
#5A51DB #DB518D #D2DB51 #51DB9F
split-complementary
#5A51DB #DB9F51 #8DDB51
monochromatic
#261E93 #3329C6 #5A51DB #8A84E5 #BAB6F0
Accessibility & contrast
On white
5.78
#5A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#5A51DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A51DB
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A51DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A51DB | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5a51db; /* rgb */ color: rgb(90, 81, 219); /* oklch */ color: oklch(52.7% 0.203 279.7);
Tailwind
colors: {
custom: {
50: '#9582e7',
500: '#5a51db',
950: '#000000',
},
}SCSS
$custom: #5a51db; $custom-light: #9582e7; $custom-dark: #000000;
JSON
{
"hex": "#5a51db",
"rgb": {
"r": 90,
"g": 81,
"b": 219
},
"hsl": {
"h": 243.913,
"s": 65.714,
"l": 58.824
},
"oklch": {
"l": 0.52656,
"c": 0.2032,
"h": 279.7
},
"luminance": 0.13173
}Semantic roles & 50–950 ramp
primary
#5A51DB
secondary
#DCDFA9
accent
#E93FDE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84