#505EC5#505EC5
#505EC5 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.160 H 273.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #505EC5 |
|---|---|
| RGB | rgb(80, 94, 197) |
| HSL | hsl(233, 50%, 54%) |
| HSV | hsv(233, 59%, 77%) |
| CMYK | cmyk(59.4%, 52.3%, 0%, 22.7%) |
| CIE-LAB | lab(43.86, 25.82, -55.64) |
| CIE-LCH | lch(43.86, 61.34, 294.89°) |
| OKLab | oklab(52.6% 0.0105 -0.1594) |
| OKLCH | oklch(52.6% 0.16 273.8) |
| XYZ | xyz(17.3857, 13.7408, 54.5486) |
| Luminance | 0.1374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.68
Iris
#6258C4
ΔE00 4.24
Dark Periwinkle
#665FD1
ΔE00 4.32
Slate Blue
#6A5ACD
ΔE00 5.33
Royal Blue
#4169E1
ΔE00 5.69
Azul
#1D5DEC
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#505EC5 #C5B750
analogous
#5098C5 #505EC5 #7D50C5
triadic
#505EC5 #C5505E #5EC550
tetradic
#505EC5 #C55098 #C5B750 #50C57D
square
#505EC5 #C55098 #C5B750 #50C57D
split-complementary
#505EC5 #C57D50 #98C550
monochromatic
#263074 #3643A2 #505EC5 #7E88D4 #ACB3E3
Accessibility & contrast
On white
5.60
#505EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#505EC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #505EC5
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##505EC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##505EC5 | 1.00 | 5.60 | 3.75 | 5.60 |
| #FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#226DC9
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #505ec5; /* rgb */ color: rgb(80, 94, 197); /* oklch */ color: oklch(52.6% 0.160 273.8);
Tailwind
colors: {
custom: {
50: '#8b8bd7',
500: '#505ec5',
950: '#000000',
},
}SCSS
$custom: #505ec5; $custom-light: #8b8bd7; $custom-dark: #000000;
JSON
{
"hex": "#505ec5",
"rgb": {
"r": 80,
"g": 94,
"b": 197
},
"hsl": {
"h": 232.821,
"s": 50.215,
"l": 54.314
},
"oklch": {
"l": 0.52596,
"c": 0.15971,
"h": 273.8
},
"luminance": 0.13742
}Semantic roles & 50–950 ramp
primary
#505EC5
secondary
#D1CBA0
accent
#C94EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83