#504DD5#504DD5

#504DD5 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 50.8% C 0.202 H 277.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#504DD5
RGBrgb(80, 77, 213)
HSLhsl(241, 62%, 57%)
HSVhsv(241, 64%, 84%)
CMYKcmyk(62.4%, 63.8%, 0%, 16.5%)
CIE-LABlab(40.92, 41.61, -69.63)
CIE-LCHlch(40.92, 81.12, 300.86°)
OKLaboklab(50.79% 0.026 -0.2006)
OKLCHoklch(50.79% 0.202 277.4)
XYZxyz(17.9685, 11.8159, 64.2717)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD5 #D2D54D
analogous
#4D8ED5 #504DD5 #944DD5
triadic
#504DD5 #D5504D #4DD550
tetradic
#504DD5 #D54D8E #D2D54D #4DD594
square
#504DD5 #D54D8E #D2D54D #4DD594
split-complementary
#504DD5 #D5944D #8ED54D
monochromatic
#222088 #2F2CB9 #504DD5 #817FE1 #B1B0EC

Accessibility & contrast

On white

6.24
#504DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504DD5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD5#FFFFFF#000000##FFFFFF
##504DD51.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#00708A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504dd5;
/* rgb */ color: rgb(80, 77, 213);
/* oklch */ color: oklch(50.8% 0.202 277.4);
Tailwind
colors: {
  custom: {
    50: '#8f7fe3',
    500: '#504dd5',
    950: '#000000',
  },
}
SCSS
$custom: #504dd5;
$custom-light: #8f7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd5",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 213
  },
  "hsl": {
    "h": 241.324,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50791,
    "c": 0.2023,
    "h": 277.4
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

primary
#504DD5
secondary
#D9DBA3
accent
#E543E1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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