#505ED7#505ED7
#505ED7 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.9% C 0.184 H 273.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #505ED7 |
|---|---|
| RGB | rgb(80, 94, 215) |
| HSL | hsl(234, 63%, 58%) |
| HSV | hsv(234, 63%, 84%) |
| CMYK | cmyk(62.8%, 56.3%, 0%, 15.7%) |
| CIE-LAB | lab(45.10, 31.89, -63.97) |
| CIE-LCH | lch(45.10, 71.47, 296.50°) |
| OKLab | oklab(53.92% 0.0113 -0.1839) |
| OKLCH | oklch(53.92% 0.184 273.5) |
| XYZ | xyz(19.5726, 14.6155, 66.0664) |
| Luminance | 0.1462 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.22
Dark Periwinkle
#665FD1
ΔE00 3.63
Azul
#1D5DEC
ΔE00 4.41
Iris
#6258C4
ΔE00 4.65
Royal Blue
#4169E1
ΔE00 4.71
Slate Blue
#6A5ACD
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#505ED7 #D7C950
analogous
#50A1D7 #505ED7 #8650D7
triadic
#505ED7 #D7505E #5ED750
tetradic
#505ED7 #D750A1 #D7C950 #50D786
square
#505ED7 #D750A1 #D7C950 #50D786
split-complementary
#505ED7 #D78650 #A1D750
monochromatic
#202B8C #2B3BBE #505ED7 #828CE2 #B4BAEE
Accessibility & contrast
On white
5.35
#505ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#505ED7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #505ED7
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##505ED7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##505ED7 | 1.00 | 5.35 | 3.92 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0065D5
Tritanopia (blue-blind)
#007B91
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #505ed7; /* rgb */ color: rgb(80, 94, 215); /* oklch */ color: oklch(53.9% 0.184 273.5);
Tailwind
colors: {
custom: {
50: '#8e8be4',
500: '#505ed7',
950: '#000000',
},
}SCSS
$custom: #505ed7; $custom-light: #8e8be4; $custom-dark: #000000;
JSON
{
"hex": "#505ed7",
"rgb": {
"r": 80,
"g": 94,
"b": 215
},
"hsl": {
"h": 233.778,
"s": 62.791,
"l": 57.843
},
"oklch": {
"l": 0.53923,
"c": 0.18422,
"h": 273.5
},
"luminance": 0.14617
}Semantic roles & 50–950 ramp
primary
#505ED7
secondary
#DCD7A6
accent
#D542E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84