#504DD7#504DD7

#504DD7 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.0% C 0.205 H 277.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#504DD7
RGBrgb(80, 77, 215)
HSLhsl(241, 63%, 57%)
HSVhsv(241, 64%, 84%)
CMYKcmyk(62.8%, 64.2%, 0%, 15.7%)
CIE-LABlab(41.09, 42.26, -70.51)
CIE-LCHlch(41.09, 82.20, 300.94°)
OKLaboklab(50.96% 0.0258 -0.2032)
OKLCHoklch(50.96% 0.205 277.2)
XYZxyz(18.2239, 11.9181, 65.6169)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD7 #D4D74D
analogous
#4D8FD7 #504DD7 #954DD7
triadic
#504DD7 #D7504D #4DD750
tetradic
#504DD7 #D74D8F #D4D74D #4DD795
square
#504DD7 #D74D8F #D4D74D #4DD795
split-complementary
#504DD7 #D7954D #8FD74D
monochromatic
#211F8A #2E2ABC #504DD7 #817FE2 #B2B1ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504DD7#FFFFFF#000000##FFFFFF
##504DD71.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)
#0067DB
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#00708B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504dd7;
/* rgb */ color: rgb(80, 77, 215);
/* oklch */ color: oklch(51.0% 0.205 277.2);
Tailwind
colors: {
  custom: {
    50: '#907fe4',
    500: '#504dd7',
    950: '#000000',
  },
}
SCSS
$custom: #504dd7;
$custom-light: #907fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd7",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 241.304,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50961,
    "c": 0.20484,
    "h": 277.2
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#504DD7
secondary
#DBDCA4
accent
#E641E3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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