#504AD5#504AD5

#504AD5 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.3% C 0.206 H 277.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#504AD5
RGBrgb(80, 74, 213)
HSLhsl(243, 62%, 56%)
HSVhsv(243, 65%, 84%)
CMYKcmyk(62.4%, 65.3%, 0%, 16.5%)
CIE-LABlab(40.26, 43.39, -70.72)
CIE-LCHlch(40.26, 82.97, 301.53°)
OKLaboklab(50.31% 0.0284 -0.2038)
OKLCHoklch(50.31% 0.206 277.9)
XYZxyz(17.7634, 11.4057, 64.2033)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AD5 #CFD54A
analogous
#4A8AD5 #504AD5 #964AD5
triadic
#504AD5 #D5504A #4AD550
tetradic
#504AD5 #D54A8A #CFD54A #4AD596
square
#504AD5 #D54A8A #CFD54A #4AD596
split-complementary
#504AD5 #D5964A #8AD54A
monochromatic
#231F86 #312BB7 #504AD5 #807CE1 #B0ADEC

Accessibility & contrast

On white

6.40
#504AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#504AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AD5
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AD5#FFFFFF#000000##FFFFFF
##504AD51.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#006E89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504ad5;
/* rgb */ color: rgb(80, 74, 213);
/* oklch */ color: oklch(50.3% 0.206 277.9);
Tailwind
colors: {
  custom: {
    50: '#8f7de3',
    500: '#504ad5',
    950: '#000000',
  },
}
SCSS
$custom: #504ad5;
$custom-light: #8f7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#504ad5",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 213
  },
  "hsl": {
    "h": 242.59,
    "s": 62.332,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50306,
    "c": 0.2058,
    "h": 277.9
  },
  "luminance": 0.11407
}

Semantic roles & 50–950 ramp

primary
#504AD5
secondary
#D8DAA1
accent
#E542DE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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