#504CBD#504CBD
#504CBD is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.7% C 0.172 H 279.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #504CBD |
|---|---|
| RGB | rgb(80, 76, 189) |
| HSL | hsl(242, 46%, 52%) |
| HSV | hsv(242, 60%, 74%) |
| CMYK | cmyk(57.7%, 59.8%, 0%, 25.9%) |
| CIE-LAB | lab(38.81, 34.41, -59.16) |
| CIE-LCH | lch(38.81, 68.44, 300.19°) |
| OKLab | oklab(48.65% 0.0282 -0.1699) |
| OKLCH | oklch(48.65% 0.172 279.4) |
| XYZ | xyz(15.0751, 10.5474, 49.3757) |
| Luminance | 0.1055 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.10
Iris
#6258C4
ΔE00 4.45
Blue With A Hint Of Purple
#533CC6
ΔE00 4.64
Bluey Purple
#6241C7
ΔE00 4.70
Blue Blue
#2242C7
ΔE00 5.29
Warm Blue
#4B57DB
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504CBD #B9BD4C
analogous
#4C81BD #504CBD #894CBD
triadic
#504CBD #BD504C #4CBD50
tetradic
#504CBD #BD4C81 #B9BD4C #4CBD89
square
#504CBD #BD4C81 #B9BD4C #4CBD89
split-complementary
#504CBD #BD894C #81BD4C
monochromatic
#292668 #3A3795 #504CBD #7C79CD #A7A5DE
Accessibility & contrast
On white
6.75
#504CBD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#504CBD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504CBD
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504CBD | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0057BB
Tritanopia (blue-blind)
#0D677D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #504cbd; /* rgb */ color: rgb(80, 76, 189); /* oklch */ color: oklch(48.7% 0.172 279.4);
Tailwind
colors: {
custom: {
50: '#8b7ed2',
500: '#504cbd',
950: '#000000',
},
}SCSS
$custom: #504cbd; $custom-light: #8b7ed2; $custom-dark: #000000;
JSON
{
"hex": "#504cbd",
"rgb": {
"r": 80,
"g": 76,
"b": 189
},
"hsl": {
"h": 242.124,
"s": 46.122,
"l": 51.961
},
"oklch": {
"l": 0.48653,
"c": 0.17221,
"h": 279.4
},
"luminance": 0.10548
}Semantic roles & 50–950 ramp
primary
#504CBD
secondary
#C9CB9A
accent
#D652D1
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83