#504FD2#504FD2
#504FD2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.9% C 0.196 H 277.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #504FD2 |
|---|---|
| RGB | rgb(80, 79, 210) |
| HSL | hsl(240, 59%, 57%) |
| HSV | hsv(240, 62%, 82%) |
| CMYK | cmyk(61.9%, 62.4%, 0%, 17.6%) |
| CIE-LAB | lab(41.14, 39.43, -67.56) |
| CIE-LCH | lch(41.14, 78.22, 300.27°) |
| OKLab | oklab(50.87% 0.0245 -0.1945) |
| OKLCH | oklch(50.87% 0.196 277.2) |
| XYZ | xyz(17.7333, 11.9492, 62.3322) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.86
Iris
#6258C4
ΔE00 4.07
Slate Blue
#6A5ACD
ΔE00 4.99
Bluey Purple
#6241C7
ΔE00 5.17
Light Indigo
#6D5ACF
ΔE00 5.38
Ocean Blue
#4F42B5
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504FD2 #D1D24F
analogous
#4F90D2 #504FD2 #924FD2
triadic
#504FD2 #D2504F #4FD250
tetradic
#504FD2 #D24F90 #D1D24F #4FD292
square
#504FD2 #D24F90 #D1D24F #4FD292
split-complementary
#504FD2 #D2924F #90D24F
monochromatic
#232285 #2F2EB5 #504FD2 #8080DE #B1B0EB
Accessibility & contrast
On white
6.19
#504FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#504FD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504FD2
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504FD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504FD2 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#007089
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #504fd2; /* rgb */ color: rgb(80, 79, 210); /* oklch */ color: oklch(50.9% 0.196 277.2);
Tailwind
colors: {
custom: {
50: '#8f81e1',
500: '#504fd2',
950: '#000000',
},
}SCSS
$custom: #504fd2; $custom-light: #8f81e1; $custom-dark: #000000;
JSON
{
"hex": "#504fd2",
"rgb": {
"r": 80,
"g": 79,
"b": 210
},
"hsl": {
"h": 240.458,
"s": 59.276,
"l": 56.667
},
"oklch": {
"l": 0.50872,
"c": 0.19608,
"h": 277.2
},
"luminance": 0.11951
}Semantic roles & 50–950 ramp
primary
#504FD2
secondary
#D9D9A4
accent
#E245E1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83