#504DD9#504DD9

#504DD9 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.1% C 0.207 H 277.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#504DD9
RGBrgb(80, 77, 217)
HSLhsl(241, 65%, 58%)
HSVhsv(241, 65%, 85%)
CMYKcmyk(63.1%, 64.5%, 0%, 14.9%)
CIE-LABlab(41.25, 42.91, -71.39)
CIE-LCHlch(41.25, 83.29, 301.01°)
OKLaboklab(51.13% 0.0256 -0.2058)
OKLCHoklch(51.13% 0.207 277.1)
XYZxyz(18.4825, 12.0215, 66.9786)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD9 #D6D94D
analogous
#4D90D9 #504DD9 #964DD9
triadic
#504DD9 #D9504D #4DD950
tetradic
#504DD9 #D94D90 #D6D94D #4DD996
square
#504DD9 #D94D90 #D6D94D #4DD996
split-complementary
#504DD9 #D9964D #90D94D
monochromatic
#211E8D #2C29C0 #504DD9 #827FE4 #B3B2EF

Accessibility & contrast

On white

6.17
#504DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#504DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD9
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD9#FFFFFF#000000##FFFFFF
##504DD91.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504dd9;
/* rgb */ color: rgb(80, 77, 217);
/* oklch */ color: oklch(51.1% 0.207 277.1);
Tailwind
colors: {
  custom: {
    50: '#907fe6',
    500: '#504dd9',
    950: '#000000',
  },
}
SCSS
$custom: #504dd9;
$custom-light: #907fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd9",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 217
  },
  "hsl": {
    "h": 241.286,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51132,
    "c": 0.20738,
    "h": 277.1
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#504DD9
secondary
#DCDDA5
accent
#E840E4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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