#504CD1#504CD1

#504CD1 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.3% C 0.198 H 277.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#504CD1
RGBrgb(80, 76, 209)
HSLhsl(242, 59%, 56%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.7%, 63.6%, 0%, 18%)
CIE-LABlab(40.37, 40.91, -68.23)
CIE-LCHlch(40.37, 79.55, 300.95°)
OKLaboklab(50.29% 0.0271 -0.1965)
OKLCHoklch(50.29% 0.198 277.9)
XYZxyz(17.3976, 11.4765, 61.6076)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD1 #CDD14C
analogous
#4C8AD1 #504CD1 #934CD1
triadic
#504CD1 #D1504C #4CD150
tetradic
#504CD1 #D14C8A #CDD14C #4CD193
square
#504CD1 #D14C8A #CDD14C #4CD193
split-complementary
#504CD1 #D1934C #8AD14C
monochromatic
#242181 #322EB2 #504CD1 #807DDE #AFADEA

Accessibility & contrast

On white

6.37
#504CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#504CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CD1
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD1#FFFFFF#000000##FFFFFF
##504CD11.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#006E87
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504cd1;
/* rgb */ color: rgb(80, 76, 209);
/* oklch */ color: oklch(50.3% 0.198 277.9);
Tailwind
colors: {
  custom: {
    50: '#8f7ee0',
    500: '#504cd1',
    950: '#000000',
  },
}
SCSS
$custom: #504cd1;
$custom-light: #8f7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd1",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 241.805,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50289,
    "c": 0.19838,
    "h": 277.9
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#504CD1
secondary
#D6D8A1
accent
#E246DE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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