#5A54BB#5A54BB
#5A54BB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.7% C 0.157 H 281.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).
Color values
| HEX | #5A54BB |
|---|---|
| RGB | rgb(90, 84, 187) |
| HSL | hsl(243, 43%, 53%) |
| HSV | hsv(243, 55%, 73%) |
| CMYK | cmyk(51.9%, 55.1%, 0%, 26.7%) |
| CIE-LAB | lab(41.38, 30.78, -53.79) |
| CIE-LCH | lch(41.38, 61.98, 299.78°) |
| OKLab | oklab(50.71% 0.0323 -0.1538) |
| OKLCH | oklch(50.71% 0.157 281.8) |
| XYZ | xyz(16.3537, 12.1012, 48.4781) |
| Luminance | 0.1210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.15
Slate Blue
#6A5ACD
ΔE00 4.10
Light Indigo
#6D5ACF
ΔE00 4.65
Dark Periwinkle
#665FD1
ΔE00 4.92
Warm Blue
#4B57DB
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A54BB #B5BB54
analogous
#5481BB #5A54BB #8D54BB
triadic
#5A54BB #BB5A54 #54BB5A
tetradic
#5A54BB #BB5481 #B5BB54 #54BB8D
square
#5A54BB #BB5481 #B5BB54 #54BB8D
split-complementary
#5A54BB #BB8D54 #81BB54
monochromatic
#2E2A6A #413C96 #5A54BB #8480CC #AFACDE
Accessibility & contrast
On white
6.14
#5A54BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#5A54BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A54BB
6.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A54BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A54BB | 1.00 | 6.14 | 3.42 | 6.14 |
| #FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1465BF
Deuteranopia (green-blind)
#025EB9
Tritanopia (blue-blind)
#336B7F
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5a54bb; /* rgb */ color: rgb(90, 84, 187); /* oklch */ color: oklch(50.7% 0.157 281.8);
Tailwind
colors: {
custom: {
50: '#9084d0',
500: '#5a54bb',
950: '#000000',
},
}SCSS
$custom: #5a54bb; $custom-light: #9084d0; $custom-dark: #000000;
JSON
{
"hex": "#5a54bb",
"rgb": {
"r": 90,
"g": 84,
"b": 187
},
"hsl": {
"h": 243.495,
"s": 43.096,
"l": 53.137
},
"oklch": {
"l": 0.50706,
"c": 0.15711,
"h": 281.8
},
"luminance": 0.12102
}Semantic roles & 50–950 ramp
primary
#5A54BB
secondary
#C9CC9F
accent
#D355CC
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82