#504ED8#504ED8

#504ED8 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.2% C 0.205 H 277.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#504ED8
RGBrgb(80, 78, 216)
HSLhsl(241, 64%, 58%)
HSVhsv(241, 64%, 85%)
CMYKcmyk(63%, 63.9%, 0%, 15.3%)
CIE-LABlab(41.39, 41.99, -70.58)
CIE-LCHlch(41.39, 82.13, 300.75°)
OKLaboklab(51.21% 0.0249 -0.2034)
OKLCHoklch(51.21% 0.205 277)
XYZxyz(18.4233, 12.1106, 66.3192)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED8 #D6D84E
analogous
#4E91D8 #504ED8 #954ED8
triadic
#504ED8 #D8504E #4ED850
tetradic
#504ED8 #D84E91 #D6D84E #4ED895
square
#504ED8 #D84E91 #D6D84E #4ED895
split-complementary
#504ED8 #D8954E #91D84E
monochromatic
#211F8D #2C2ABF #504ED8 #8280E3 #B3B2EE

Accessibility & contrast

On white

6.14
#504ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#504ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED8#FFFFFF#000000##FFFFFF
##504ED81.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#00718C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504ed8;
/* rgb */ color: rgb(80, 78, 216);
/* oklch */ color: oklch(51.2% 0.205 277.0);
Tailwind
colors: {
  custom: {
    50: '#9080e5',
    500: '#504ed8',
    950: '#000000',
  },
}
SCSS
$custom: #504ed8;
$custom-light: #9080e5;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed8",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 240.87,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51209,
    "c": 0.20495,
    "h": 277
  },
  "luminance": 0.12112
}

Semantic roles & 50–950 ramp

primary
#504ED8
secondary
#DCDDA5
accent
#E741E4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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