#5C51BB#5C51BB
#5C51BB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.161 H 283.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #5C51BB |
|---|---|
| RGB | rgb(92, 81, 187) |
| HSL | hsl(246, 44%, 53%) |
| HSV | hsv(246, 57%, 73%) |
| CMYK | cmyk(50.8%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(40.81, 33.05, -54.70) |
| CIE-LCH | lch(40.81, 63.91, 301.14°) |
| OKLab | oklab(50.33% 0.0381 -0.1564) |
| OKLCH | oklch(50.33% 0.161 283.7) |
| XYZ | xyz(16.3230, 11.7472, 48.4114) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.57
Slate Blue
#6A5ACD
ΔE00 4.29
Ocean Blue
#4F42B5
ΔE00 4.61
Light Indigo
#6D5ACF
ΔE00 4.76
Bluey Purple
#6241C7
ΔE00 4.95
Dark Periwinkle
#665FD1
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C51BB #B0BB51
analogous
#517BBB #5C51BB #9151BB
triadic
#5C51BB #BB5C51 #51BB5C
tetradic
#5C51BB #BB517B #B0BB51 #51BB91
square
#5C51BB #BB517B #B0BB51 #51BB91
split-complementary
#5C51BB #BB9151 #7BBB51
monochromatic
#302969 #443A95 #5C51BB #857DCC #AEA9DD
Accessibility & contrast
On white
6.27
#5C51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#5C51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5C51BB
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C51BB | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0464BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#38697E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5c51bb; /* rgb */ color: rgb(92, 81, 187); /* oklch */ color: oklch(50.3% 0.161 283.7);
Tailwind
colors: {
custom: {
50: '#9182d0',
500: '#5c51bb',
950: '#000000',
},
}SCSS
$custom: #5c51bb; $custom-light: #9182d0; $custom-dark: #000000;
JSON
{
"hex": "#5c51bb",
"rgb": {
"r": 92,
"g": 81,
"b": 187
},
"hsl": {
"h": 246.226,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.50327,
"c": 0.16095,
"h": 283.7
},
"luminance": 0.11748
}Semantic roles & 50–950 ramp
primary
#5C51BB
secondary
#C6CB9D
accent
#D454C6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82