#5D51CD#5D51CD
#5D51CD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.185 H 282.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #5D51CD |
|---|---|
| RGB | rgb(93, 81, 205) |
| HSL | hsl(246, 55%, 56%) |
| HSV | hsv(246, 60%, 80%) |
| CMYK | cmyk(54.6%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(42.18, 38.83, -62.93) |
| CIE-LCH | lch(42.18, 73.95, 301.68°) |
| OKLab | oklab(51.77% 0.039 -0.1806) |
| OKLCH | oklch(51.77% 0.185 282.2) |
| XYZ | xyz(18.4727, 12.6187, 59.2080) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.54
Slate Blue
#6A5ACD
ΔE00 3.28
Light Indigo
#6D5ACF
ΔE00 3.65
Warm Blue
#4B57DB
ΔE00 3.82
Dark Periwinkle
#665FD1
ΔE00 4.39
Bluey Purple
#6241C7
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D51CD #C1CD51
analogous
#5183CD #5D51CD #9B51CD
triadic
#5D51CD #CD5D51 #51CD5D
tetradic
#5D51CD #CD5183 #C1CD51 #51CD9B
square
#5D51CD #CD5183 #C1CD51 #51CD9B
split-complementary
#5D51CD #CD9B51 #83CD51
monochromatic
#2D257F #3E32AF #5D51CD #8981DB #B6B0E8
Accessibility & contrast
On white
5.96
#5D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#5D51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5D51CD
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D51CD | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#296F87
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5d51cd; /* rgb */ color: rgb(93, 81, 205); /* oklch */ color: oklch(51.8% 0.185 282.2);
Tailwind
colors: {
custom: {
50: '#9482dd',
500: '#5d51cd',
950: '#000000',
},
}SCSS
$custom: #5d51cd; $custom-light: #9482dd; $custom-dark: #000000;
JSON
{
"hex": "#5d51cd",
"rgb": {
"r": 93,
"g": 81,
"b": 205
},
"hsl": {
"h": 245.806,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.51767,
"c": 0.18472,
"h": 282.2
},
"luminance": 0.1262
}Semantic roles & 50–950 ramp
primary
#5D51CD
secondary
#D2D7A3
accent
#DF49D0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83