#504ED3#504ED3

#504ED3 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.8% C 0.199 H 277.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#504ED3
RGBrgb(80, 78, 211)
HSLhsl(241, 60%, 57%)
HSVhsv(241, 63%, 83%)
CMYKcmyk(62.1%, 63%, 0%, 17.3%)
CIE-LABlab(40.99, 40.36, -68.38)
CIE-LCHlch(40.99, 79.40, 300.55°)
OKLaboklab(50.79% 0.0253 -0.1969)
OKLCHoklch(50.79% 0.199 277.3)
XYZxyz(17.7867, 11.8560, 62.9665)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED3 #D1D34E
analogous
#4E8FD3 #504ED3 #934ED3
triadic
#504ED3 #D3504E #4ED350
tetradic
#504ED3 #D34E8F #D1D34E #4ED393
square
#504ED3 #D34E8F #D1D34E #4ED393
split-complementary
#504ED3 #D3934E #8FD34E
monochromatic
#232185 #2F2DB6 #504ED3 #807FDF #B1B0EB

Accessibility & contrast

On white

6.23
#504ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#504ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED3#FFFFFF#000000##FFFFFF
##504ED31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#005BD0
Tritanopia (blue-blind)
#007089
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504ed3;
/* rgb */ color: rgb(80, 78, 211);
/* oklch */ color: oklch(50.8% 0.199 277.3);
Tailwind
colors: {
  custom: {
    50: '#8f80e2',
    500: '#504ed3',
    950: '#000000',
  },
}
SCSS
$custom: #504ed3;
$custom-light: #8f80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed3",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 211
  },
  "hsl": {
    "h": 240.902,
    "s": 60.181,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50788,
    "c": 0.19857,
    "h": 277.3
  },
  "luminance": 0.11857
}

Semantic roles & 50–950 ramp

primary
#504ED3
secondary
#D9DAA3
accent
#E344E1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504ED3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#504ED3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva