#5A51BB#5A51BB
#5A51BB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.161 H 282.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #5A51BB |
|---|---|
| RGB | rgb(90, 81, 187) |
| HSL | hsl(245, 44%, 53%) |
| HSV | hsv(245, 57%, 73%) |
| CMYK | cmyk(51.9%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(40.65, 32.63, -54.97) |
| CIE-LCH | lch(40.65, 63.93, 300.69°) |
| OKLab | oklab(50.16% 0.0356 -0.1572) |
| OKLCH | oklch(50.16% 0.161 282.7) |
| XYZ | xyz(16.1258, 11.6455, 48.4022) |
| Luminance | 0.1165 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.68
Slate Blue
#6A5ACD
ΔE00 4.46
Ocean Blue
#4F42B5
ΔE00 4.52
Light Indigo
#6D5ACF
ΔE00 4.96
Bluey Purple
#6241C7
ΔE00 5.09
Warm Blue
#4B57DB
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A51BB #B2BB51
analogous
#517DBB #5A51BB #8F51BB
triadic
#5A51BB #BB5A51 #51BB5A
tetradic
#5A51BB #BB517D #B2BB51 #51BB8F
square
#5A51BB #BB517D #B2BB51 #51BB8F
split-complementary
#5A51BB #BB8F51 #7DBB51
monochromatic
#2E2969 #423A95 #5A51BB #847DCC #ADA9DD
Accessibility & contrast
On white
6.31
#5A51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#5A51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A51BB
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A51BB | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0163BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#33697E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5a51bb; /* rgb */ color: rgb(90, 81, 187); /* oklch */ color: oklch(50.2% 0.161 282.7);
Tailwind
colors: {
custom: {
50: '#9082d0',
500: '#5a51bb',
950: '#000000',
},
}SCSS
$custom: #5a51bb; $custom-light: #9082d0; $custom-dark: #000000;
JSON
{
"hex": "#5a51bb",
"rgb": {
"r": 90,
"g": 81,
"b": 187
},
"hsl": {
"h": 245.094,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.50164,
"c": 0.16121,
"h": 282.7
},
"luminance": 0.11646
}Semantic roles & 50–950 ramp
primary
#5A51BB
secondary
#C7CB9D
accent
#D454C9
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82