#504FD9#504FD9

#504FD9 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.5% C 0.205 H 276.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#504FD9
RGBrgb(80, 79, 217)
HSLhsl(240, 64%, 58%)
HSVhsv(240, 64%, 85%)
CMYKcmyk(63.1%, 63.6%, 0%, 14.9%)
CIE-LABlab(41.70, 41.72, -70.65)
CIE-LCHlch(41.70, 82.05, 300.56°)
OKLaboklab(51.46% 0.024 -0.2036)
OKLCHoklch(51.46% 0.205 276.7)
XYZxyz(18.6246, 12.3057, 67.0259)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD9 #D8D94F
analogous
#4F93D9 #504FD9 #954FD9
triadic
#504FD9 #D9504F #4FD950
tetradic
#504FD9 #D94F93 #D8D94F #4FD995
square
#504FD9 #D94F93 #D8D94F #4FD995
split-complementary
#504FD9 #D9954F #93D94F
monochromatic
#201F8F #2B2AC1 #504FD9 #8281E4 #B4B4EF

Accessibility & contrast

On white

6.07
#504FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#504FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD9
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD9#FFFFFF#000000##FFFFFF
##504FD91.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#00728D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504fd9;
/* rgb */ color: rgb(80, 79, 217);
/* oklch */ color: oklch(51.5% 0.205 276.7);
Tailwind
colors: {
  custom: {
    50: '#9081e6',
    500: '#504fd9',
    950: '#000000',
  },
}
SCSS
$custom: #504fd9;
$custom-light: #9081e6;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd9",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 240.435,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51458,
    "c": 0.20504,
    "h": 276.7
  },
  "luminance": 0.12307
}

Semantic roles & 50–950 ramp

primary
#504FD9
secondary
#DDDDA6
accent
#E740E6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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