#5B51CD#5B51CD
#5B51CD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.185 H 281.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5B51CD |
|---|---|
| RGB | rgb(91, 81, 205) |
| HSL | hsl(245, 55%, 56%) |
| HSV | hsv(245, 60%, 80%) |
| CMYK | cmyk(55.6%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(42.02, 38.47, -63.19) |
| CIE-LCH | lch(42.02, 73.98, 301.33°) |
| OKLab | oklab(51.61% 0.0365 -0.1814) |
| OKLCH | oklch(51.61% 0.185 281.4) |
| XYZ | xyz(18.2728, 12.5156, 59.1987) |
| Luminance | 0.1252 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.63
Slate Blue
#6A5ACD
ΔE00 3.49
Warm Blue
#4B57DB
ΔE00 3.59
Light Indigo
#6D5ACF
ΔE00 3.87
Dark Periwinkle
#665FD1
ΔE00 4.47
Bluey Purple
#6241C7
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B51CD #C3CD51
analogous
#5185CD #5B51CD #9951CD
triadic
#5B51CD #CD5B51 #51CD5B
tetradic
#5B51CD #CD5185 #C3CD51 #51CD99
square
#5B51CD #CD5185 #C3CD51 #51CD99
split-complementary
#5B51CD #CD9951 #85CD51
monochromatic
#2C257F #3C32AF #5B51CD #8881DB #B5B0E8
Accessibility & contrast
On white
5.99
#5B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#5B51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B51CD
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B51CD | 1.00 | 5.99 | 3.50 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#226F87
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5b51cd; /* rgb */ color: rgb(91, 81, 205); /* oklch */ color: oklch(51.6% 0.185 281.4);
Tailwind
colors: {
custom: {
50: '#9382dd',
500: '#5b51cd',
950: '#000000',
},
}SCSS
$custom: #5b51cd; $custom-light: #9382dd; $custom-dark: #000000;
JSON
{
"hex": "#5b51cd",
"rgb": {
"r": 91,
"g": 81,
"b": 205
},
"hsl": {
"h": 244.839,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.5161,
"c": 0.18503,
"h": 281.4
},
"luminance": 0.12517
}Semantic roles & 50–950 ramp
primary
#5B51CD
secondary
#D2D7A3
accent
#DF49D3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83