#505ED9#505ED9
#505ED9 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.1% C 0.187 H 273.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #505ED9 |
|---|---|
| RGB | rgb(80, 94, 217) |
| HSL | hsl(234, 64%, 58%) |
| HSV | hsv(234, 63%, 85%) |
| CMYK | cmyk(63.1%, 56.7%, 0%, 14.9%) |
| CIE-LAB | lab(45.25, 32.56, -64.88) |
| CIE-LCH | lch(45.25, 72.59, 296.65°) |
| OKLab | oklab(54.08% 0.0114 -0.1865) |
| OKLCH | oklch(54.08% 0.187 273.5) |
| XYZ | xyz(19.8312, 14.7189, 67.4282) |
| Luminance | 0.1472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.19
Dark Periwinkle
#665FD1
ΔE00 3.64
Azul
#1D5DEC
ΔE00 4.33
Royal Blue
#4169E1
ΔE00 4.66
Iris
#6258C4
ΔE00 4.77
Slate Blue
#6A5ACD
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#505ED9 #D9CB50
analogous
#50A2D9 #505ED9 #8750D9
triadic
#505ED9 #D9505E #5ED950
tetradic
#505ED9 #D950A2 #D9CB50 #50D987
square
#505ED9 #D950A2 #D9CB50 #50D987
split-complementary
#505ED9 #D98750 #A2D950
monochromatic
#1F2B8F #2A3AC2 #505ED9 #828CE4 #B5BBEF
Accessibility & contrast
On white
5.32
#505ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#505ED9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #505ED9
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##505ED9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##505ED9 | 1.00 | 5.32 | 3.94 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #505ed9; /* rgb */ color: rgb(80, 94, 217); /* oklch */ color: oklch(54.1% 0.187 273.5);
Tailwind
colors: {
custom: {
50: '#8f8be6',
500: '#505ed9',
950: '#000000',
},
}SCSS
$custom: #505ed9; $custom-light: #8f8be6; $custom-dark: #000000;
JSON
{
"hex": "#505ed9",
"rgb": {
"r": 80,
"g": 94,
"b": 217
},
"hsl": {
"h": 233.869,
"s": 64.319,
"l": 58.235
},
"oklch": {
"l": 0.54076,
"c": 0.18689,
"h": 273.5
},
"luminance": 0.14721
}Semantic roles & 50–950 ramp
primary
#505ED9
secondary
#DED8A7
accent
#D640E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84