#504ED2#504ED2

#504ED2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.7% C 0.197 H 277.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#504ED2
RGBrgb(80, 78, 210)
HSLhsl(241, 59%, 56%)
HSVhsv(241, 63%, 82%)
CMYKcmyk(61.9%, 62.9%, 0%, 17.6%)
CIE-LABlab(40.91, 40.04, -67.93)
CIE-LCHlch(40.91, 78.85, 300.51°)
OKLaboklab(50.7% 0.0254 -0.1956)
OKLCHoklch(50.7% 0.197 277.4)
XYZxyz(17.6618, 11.8060, 62.3083)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ED2 #D0D24E
analogous
#4E8ED2 #504ED2 #924ED2
triadic
#504ED2 #D2504E #4ED250
tetradic
#504ED2 #D24E8E #D0D24E #4ED292
square
#504ED2 #D24E8E #D0D24E #4ED292
split-complementary
#504ED2 #D2924E #8ED24E
monochromatic
#232284 #302EB5 #504ED2 #807FDE #B0B0EB

Accessibility & contrast

On white

6.25
#504ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#504ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ED2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ED2#FFFFFF#000000##FFFFFF
##504ED21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#006F89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504ed2;
/* rgb */ color: rgb(80, 78, 210);
/* oklch */ color: oklch(50.7% 0.197 277.4);
Tailwind
colors: {
  custom: {
    50: '#8f80e1',
    500: '#504ed2',
    950: '#000000',
  },
}
SCSS
$custom: #504ed2;
$custom-light: #8f80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#504ed2",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 240.909,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.19728,
    "h": 277.4
  },
  "luminance": 0.11807
}

Semantic roles & 50–950 ramp

primary
#504ED2
secondary
#D8D9A3
accent
#E345E0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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