#504E8A#504E8A
#504E8A is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.5% C 0.096 H 283.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).
Color values
| HEX | #504E8A |
|---|---|
| RGB | rgb(80, 78, 138) |
| HSL | hsl(242, 28%, 42%) |
| HSV | hsv(242, 43%, 54%) |
| CMYK | cmyk(42%, 43.5%, 0%, 45.9%) |
| CIE-LAB | lab(35.96, 16.84, -33.23) |
| CIE-LCH | lch(35.96, 37.25, 296.87°) |
| OKLab | oklab(45.45% 0.0223 -0.0937) |
| OKLCH | oklch(45.45% 0.096 283.4) |
| XYZ | xyz(10.6188, 8.9888, 25.2153) |
| Luminance | 0.0899 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 1.41
Dusk
#4E5481
ΔE00 3.66
Blueberry
#464196
ΔE00 5.61
Darkslateblue
#483D8B
ΔE00 5.77
Dusky Blue
#475F94
ΔE00 7.81
Denim Blue
#3B5B92
ΔE00 8.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504E8A #888A4E
analogous
#4E6A8A #504E8A #6E4E8A
triadic
#504E8A #8A504E #4E8A50
tetradic
#504E8A #8A4E6A #888A4E #4E8A6E
square
#504E8A #8A4E6A #888A4E #4E8A6E
split-complementary
#504E8A #8A6E4E #6A8A4E
monochromatic
#23223C #393863 #504E8A #6C6AAB #9391C1
Accessibility & contrast
On white
7.51
#504E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#504E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504E8A
7.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504E8A | 1.00 | 7.51 | 2.80 | 7.51 |
| #FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#39578C
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#3F5A65
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #504e8a; /* rgb */ color: rgb(80, 78, 138); /* oklch */ color: oklch(45.5% 0.096 283.4);
Tailwind
colors: {
custom: {
50: '#847fac',
500: '#504e8a',
950: '#000000',
},
}SCSS
$custom: #504e8a; $custom-light: #847fac; $custom-dark: #000000;
JSON
{
"hex": "#504e8a",
"rgb": {
"r": 80,
"g": 78,
"b": 138
},
"hsl": {
"h": 242,
"s": 27.778,
"l": 42.353
},
"oklch": {
"l": 0.4545,
"c": 0.09632,
"h": 283.4
},
"luminance": 0.08989
}Semantic roles & 50–950 ramp
primary
#504E8A
secondary
#ACAE86
accent
#C464C1
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F