#5D51CB#5D51CB
#5D51CB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.182 H 282.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5D51CB |
|---|---|
| RGB | rgb(93, 81, 203) |
| HSL | hsl(246, 54%, 56%) |
| HSV | hsv(246, 60%, 80%) |
| CMYK | cmyk(54.2%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(42.04, 38.21, -62.01) |
| CIE-LCH | lch(42.04, 72.84, 301.64°) |
| OKLab | oklab(51.61% 0.0391 -0.1779) |
| OKLCH | oklch(51.61% 0.182 282.4) |
| XYZ | xyz(18.2328, 12.5227, 57.9447) |
| Luminance | 0.1252 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.41
Slate Blue
#6A5ACD
ΔE00 3.31
Light Indigo
#6D5ACF
ΔE00 3.69
Warm Blue
#4B57DB
ΔE00 3.96
Dark Periwinkle
#665FD1
ΔE00 4.45
Bluey Purple
#6241C7
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D51CB #BFCB51
analogous
#5182CB #5D51CB #9A51CB
triadic
#5D51CB #CB5D51 #51CB5D
tetradic
#5D51CB #CB5182 #BFCB51 #51CB9A
square
#5D51CB #CB5182 #BFCB51 #51CB9A
split-complementary
#5D51CB #CB9A51 #82CB51
monochromatic
#2E257C #3F33AC #5D51CB #8980D9 #B5AFE7
Accessibility & contrast
On white
5.99
#5D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#5D51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5D51CB
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D51CB | 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)
#0067CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#2B6E86
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5d51cb; /* rgb */ color: rgb(93, 81, 203); /* oklch */ color: oklch(51.6% 0.182 282.4);
Tailwind
colors: {
custom: {
50: '#9482dc',
500: '#5d51cb',
950: '#000000',
},
}SCSS
$custom: #5d51cb; $custom-light: #9482dc; $custom-dark: #000000;
JSON
{
"hex": "#5d51cb",
"rgb": {
"r": 93,
"g": 81,
"b": 203
},
"hsl": {
"h": 245.902,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.51612,
"c": 0.18211,
"h": 282.4
},
"luminance": 0.12524
}Semantic roles & 50–950 ramp
primary
#5D51CB
secondary
#D0D5A3
accent
#DD4ACF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83