#505CD5#505CD5
#505CD5 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.4% C 0.184 H 274.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #505CD5 |
|---|---|
| RGB | rgb(80, 92, 213) |
| HSL | hsl(235, 61%, 57%) |
| HSV | hsv(235, 62%, 84%) |
| CMYK | cmyk(62.4%, 56.8%, 0%, 16.5%) |
| CIE-LAB | lab(44.46, 32.45, -63.86) |
| CIE-LCH | lch(44.46, 71.63, 296.94°) |
| OKLab | oklab(53.4% 0.0131 -0.1836) |
| OKLCH | oklch(53.4% 0.184 274.1) |
| XYZ | xyz(19.1417, 14.1623, 64.6628) |
| Luminance | 0.1416 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.71
Dark Periwinkle
#665FD1
ΔE00 3.59
Iris
#6258C4
ΔE00 4.18
Slate Blue
#6A5ACD
ΔE00 4.65
Azul
#1D5DEC
ΔE00 4.67
Light Indigo
#6D5ACF
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#505CD5 #D5C950
analogous
#509FD5 #505CD5 #8650D5
triadic
#505CD5 #D5505C #5CD550
tetradic
#505CD5 #D5509F #D5C950 #50D586
square
#505CD5 #D5509F #D5C950 #50D586
split-complementary
#505CD5 #D58650 #9FD550
monochromatic
#212A8A #2D3ABB #505CD5 #818AE1 #B3B8ED
Accessibility & contrast
On white
5.48
#505CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#505CD5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #505CD5
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##505CD5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##505CD5 | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#0063D3
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #505cd5; /* rgb */ color: rgb(80, 92, 213); /* oklch */ color: oklch(53.4% 0.184 274.1);
Tailwind
colors: {
custom: {
50: '#8e8ae3',
500: '#505cd5',
950: '#000000',
},
}SCSS
$custom: #505cd5; $custom-light: #8e8ae3; $custom-dark: #000000;
JSON
{
"hex": "#505cd5",
"rgb": {
"r": 80,
"g": 92,
"b": 213
},
"hsl": {
"h": 234.586,
"s": 61.29,
"l": 57.451
},
"oklch": {
"l": 0.53402,
"c": 0.18404,
"h": 274.1
},
"luminance": 0.14164
}Semantic roles & 50–950 ramp
primary
#505CD5
secondary
#DBD6A6
accent
#D643E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B15
muted
#7E7C84