#504AD4#504AD4

#504AD4 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.2% C 0.205 H 278.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#504AD4
RGBrgb(80, 74, 212)
HSLhsl(243, 62%, 56%)
HSVhsv(243, 65%, 83%)
CMYKcmyk(62.3%, 65.1%, 0%, 16.9%)
CIE-LABlab(40.17, 43.07, -70.28)
CIE-LCHlch(40.17, 82.43, 301.50°)
OKLaboklab(50.22% 0.0285 -0.2025)
OKLCHoklch(50.22% 0.205 278)
XYZxyz(17.6369, 11.3551, 63.5369)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AD4 #CED44A
analogous
#4A89D4 #504AD4 #954AD4
triadic
#504AD4 #D4504A #4AD450
tetradic
#504AD4 #D44A89 #CED44A #4AD495
square
#504AD4 #D44A89 #CED44A #4AD495
split-complementary
#504AD4 #D4954A #89D44A
monochromatic
#241F84 #312BB6 #504AD4 #807BE0 #B0ADEB

Accessibility & contrast

On white

6.42
#504AD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#504AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AD4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AD4#FFFFFF#000000##FFFFFF
##504AD41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#006E88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504ad4;
/* rgb */ color: rgb(80, 74, 212);
/* oklch */ color: oklch(50.2% 0.205 278.0);
Tailwind
colors: {
  custom: {
    50: '#8f7de2',
    500: '#504ad4',
    950: '#000000',
  },
}
SCSS
$custom: #504ad4;
$custom-light: #8f7de2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ad4",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 212
  },
  "hsl": {
    "h": 242.609,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5022,
    "c": 0.20454,
    "h": 278
  },
  "luminance": 0.11356
}

Semantic roles & 50–950 ramp

primary
#504AD4
secondary
#D7D9A0
accent
#E543DE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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