#504DD8#504DD8

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

Color values

HEX#504DD8
RGBrgb(80, 77, 216)
HSLhsl(241, 64%, 57%)
HSVhsv(241, 64%, 85%)
CMYKcmyk(63%, 64.4%, 0%, 15.3%)
CIE-LABlab(41.17, 42.58, -70.95)
CIE-LCHlch(41.17, 82.75, 300.97°)
OKLaboklab(51.05% 0.0257 -0.2045)
OKLCHoklch(51.05% 0.206 277.2)
XYZxyz(18.3528, 11.9696, 66.2956)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD8 #D5D84D
analogous
#4D8FD8 #504DD8 #964DD8
triadic
#504DD8 #D8504D #4DD850
tetradic
#504DD8 #D84D8F #D5D84D #4DD896
square
#504DD8 #D84D8F #D5D84D #4DD896
split-complementary
#504DD8 #D8964D #8FD84D
monochromatic
#211F8C #2D2ABE #504DD8 #817FE3 #B3B1EE

Accessibility & contrast

On white

6.19
#504DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#504DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD8#FFFFFF#000000##FFFFFF
##504DD81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#005BD5
Tritanopia (blue-blind)
#00718C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504dd8;
/* rgb */ color: rgb(80, 77, 216);
/* oklch */ color: oklch(51.0% 0.206 277.2);
Tailwind
colors: {
  custom: {
    50: '#907fe5',
    500: '#504dd8',
    950: '#000000',
  },
}
SCSS
$custom: #504dd8;
$custom-light: #907fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd8",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 241.295,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.20611,
    "h": 277.2
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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