#5A54BF#5A54BF
#5A54BF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.0% C 0.163 H 281.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #5A54BF |
|---|---|
| RGB | rgb(90, 84, 191) |
| HSL | hsl(243, 46%, 54%) |
| HSV | hsv(243, 56%, 75%) |
| CMYK | cmyk(52.9%, 56%, 0%, 25.1%) |
| CIE-LAB | lab(41.65, 32.05, -55.69) |
| CIE-LCH | lch(41.65, 64.25, 299.92°) |
| OKLab | oklab(51% 0.0323 -0.1593) |
| OKLCH | oklch(51% 0.163 281.5) |
| XYZ | xyz(16.7879, 12.2749, 50.7648) |
| Luminance | 0.1228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.86
Slate Blue
#6A5ACD
ΔE00 3.75
Light Indigo
#6D5ACF
ΔE00 4.30
Warm Blue
#4B57DB
ΔE00 4.50
Dark Periwinkle
#665FD1
ΔE00 4.56
Ocean Blue
#4F42B5
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A54BF #B9BF54
analogous
#5484BF #5A54BF #9054BF
triadic
#5A54BF #BF5A54 #54BF5A
tetradic
#5A54BF #BF5484 #B9BF54 #54BF90
square
#5A54BF #BF5484 #B9BF54 #54BF90
split-complementary
#5A54BF #BF9054 #84BF54
monochromatic
#2D2A6F #403A9C #5A54BF #8581D0 #B0ADE0
Accessibility & contrast
On white
6.08
#5A54BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#5A54BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A54BF
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A54BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A54BF | 1.00 | 6.08 | 3.46 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0766C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#2F6C81
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5a54bf; /* rgb */ color: rgb(90, 84, 191); /* oklch */ color: oklch(51.0% 0.163 281.5);
Tailwind
colors: {
custom: {
50: '#9084d3',
500: '#5a54bf',
950: '#000000',
},
}SCSS
$custom: #5a54bf; $custom-light: #9084d3; $custom-dark: #000000;
JSON
{
"hex": "#5a54bf",
"rgb": {
"r": 90,
"g": 84,
"b": 191
},
"hsl": {
"h": 243.364,
"s": 45.532,
"l": 53.922
},
"oklch": {
"l": 0.50996,
"c": 0.16258,
"h": 281.5
},
"luminance": 0.12276
}Semantic roles & 50–950 ramp
primary
#5A54BF
secondary
#CCCEA1
accent
#D553CE
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83