#504ED4#504ED4

#504ED4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.9% C 0.200 H 277.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#504ED4
RGBrgb(80, 78, 212)
HSLhsl(241, 61%, 57%)
HSVhsv(241, 63%, 83%)
CMYKcmyk(62.3%, 63.2%, 0%, 16.9%)
CIE-LABlab(41.07, 40.69, -68.82)
CIE-LCHlch(41.07, 79.95, 300.59°)
OKLaboklab(50.87% 0.0252 -0.1982)
OKLCHoklch(50.87% 0.2 277.2)
XYZxyz(17.9125, 11.9063, 63.6288)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED4 #D2D44E
analogous
#4E8FD4 #504ED4 #934ED4
triadic
#504ED4 #D4504E #4ED450
tetradic
#504ED4 #D44E8F #D2D44E #4ED493
square
#504ED4 #D44E8F #D2D44E #4ED493
split-complementary
#504ED4 #D4934E #8FD44E
monochromatic
#222187 #2F2DB8 #504ED4 #817FE0 #B1B0EC

Accessibility & contrast

On white

6.21
#504ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#504ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED4
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED4#FFFFFF#000000##FFFFFF
##504ED41.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#00708A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504ed4;
/* rgb */ color: rgb(80, 78, 212);
/* oklch */ color: oklch(50.9% 0.200 277.2);
Tailwind
colors: {
  custom: {
    50: '#8f80e2',
    500: '#504ed4',
    950: '#000000',
  },
}
SCSS
$custom: #504ed4;
$custom-light: #8f80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed4",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 240.896,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50871,
    "c": 0.19985,
    "h": 277.2
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

primary
#504ED4
secondary
#D9DAA4
accent
#E444E2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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