#504AD2#504AD2

#504AD2 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.0% C 0.202 H 278.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#504AD2
RGBrgb(80, 74, 210)
HSLhsl(243, 60%, 56%)
HSVhsv(243, 65%, 82%)
CMYKcmyk(61.9%, 64.8%, 0%, 17.6%)
CIE-LABlab(40.01, 42.42, -69.40)
CIE-LCHlch(40.01, 81.34, 301.44°)
OKLaboklab(50.05% 0.0287 -0.2)
OKLCHoklch(50.05% 0.202 278.2)
XYZxyz(17.3862, 11.2548, 62.2165)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AD2 #CCD24A
analogous
#4A88D2 #504AD2 #944AD2
triadic
#504AD2 #D2504A #4AD250
tetradic
#504AD2 #D24A88 #CCD24A #4AD294
square
#504AD2 #D24A88 #CCD24A #4AD294
split-complementary
#504AD2 #D2944A #88D24A
monochromatic
#242081 #322CB2 #504AD2 #7F7BDE #AFACEA

Accessibility & contrast

On white

6.46
#504AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#504AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AD2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AD2#FFFFFF#000000##FFFFFF
##504AD21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#006D87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504ad2;
/* rgb */ color: rgb(80, 74, 210);
/* oklch */ color: oklch(50.0% 0.202 278.2);
Tailwind
colors: {
  custom: {
    50: '#8f7de1',
    500: '#504ad2',
    950: '#000000',
  },
}
SCSS
$custom: #504ad2;
$custom-light: #8f7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#504ad2",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 210
  },
  "hsl": {
    "h": 242.647,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50048,
    "c": 0.20201,
    "h": 278.2
  },
  "luminance": 0.11256
}

Semantic roles & 50–950 ramp

primary
#504AD2
secondary
#D6D8A0
accent
#E344DC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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