#504FD4#504FD4
#504FD4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.199 H 277.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #504FD4 |
|---|---|
| RGB | rgb(80, 79, 212) |
| HSL | hsl(240, 61%, 57%) |
| HSV | hsv(240, 63%, 83%) |
| CMYK | cmyk(62.3%, 62.7%, 0%, 16.9%) |
| CIE-LAB | lab(41.29, 40.09, -68.45) |
| CIE-LCH | lch(41.29, 79.32, 300.36°) |
| OKLab | oklab(51.04% 0.0244 -0.1971) |
| OKLCH | oklch(51.04% 0.199 277.1) |
| XYZ | xyz(17.9841, 12.0495, 63.6527) |
| Luminance | 0.1205 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.76
Iris
#6258C4
ΔE00 4.18
Slate Blue
#6A5ACD
ΔE00 4.99
Bluey Purple
#6241C7
ΔE00 5.23
Light Indigo
#6D5ACF
ΔE00 5.37
Purpleish Blue
#6140EF
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504FD4 #D3D44F
analogous
#4F91D4 #504FD4 #934FD4
triadic
#504FD4 #D4504F #4FD450
tetradic
#504FD4 #D44F91 #D3D44F #4FD493
square
#504FD4 #D44F91 #D3D44F #4FD493
split-complementary
#504FD4 #D4934F #91D44F
monochromatic
#222187 #2E2DB9 #504FD4 #8180E0 #B2B1EC
Accessibility & contrast
On white
6.16
#504FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#504FD4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504FD4
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504FD4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504FD4 | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#005CD1
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #504fd4; /* rgb */ color: rgb(80, 79, 212); /* oklch */ color: oklch(51.0% 0.199 277.1);
Tailwind
colors: {
custom: {
50: '#8f81e2',
500: '#504fd4',
950: '#000000',
},
}SCSS
$custom: #504fd4; $custom-light: #8f81e2; $custom-dark: #000000;
JSON
{
"hex": "#504fd4",
"rgb": {
"r": 80,
"g": 79,
"b": 212
},
"hsl": {
"h": 240.451,
"s": 60.731,
"l": 57.059
},
"oklch": {
"l": 0.51038,
"c": 0.19865,
"h": 277.1
},
"luminance": 0.12051
}Semantic roles & 50–950 ramp
primary
#504FD4
secondary
#DADAA4
accent
#E444E3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84