#504FD6#504FD6

#504FD6 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.2% C 0.201 H 276.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#504FD6
RGBrgb(80, 79, 214)
HSLhsl(240, 62%, 57%)
HSVhsv(240, 63%, 84%)
CMYKcmyk(62.6%, 63.1%, 0%, 16.1%)
CIE-LABlab(41.46, 40.74, -69.33)
CIE-LCHlch(41.46, 80.42, 300.44°)
OKLaboklab(51.21% 0.0243 -0.1997)
OKLCHoklch(51.21% 0.201 276.9)
XYZxyz(18.2379, 12.1510, 64.9896)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD6 #D5D64F
analogous
#4F92D6 #504FD6 #934FD6
triadic
#504FD6 #D6504F #4FD650
tetradic
#504FD6 #D64F92 #D5D64F #4FD693
square
#504FD6 #D64F92 #D5D64F #4FD693
split-complementary
#504FD6 #D6934F #92D64F
monochromatic
#21208A #2D2CBC #504FD6 #8181E2 #B3B2ED

Accessibility & contrast

On white

6.12
#504FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#504FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD6#FFFFFF#000000##FFFFFF
##504FD61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00718B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504fd6;
/* rgb */ color: rgb(80, 79, 214);
/* oklch */ color: oklch(51.2% 0.201 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f81e4',
    500: '#504fd6',
    950: '#000000',
  },
}
SCSS
$custom: #504fd6;
$custom-light: #8f81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd6",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 214
  },
  "hsl": {
    "h": 240.444,
    "s": 62.212,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51205,
    "c": 0.20122,
    "h": 276.9
  },
  "luminance": 0.12152
}

Semantic roles & 50–950 ramp

primary
#504FD6
secondary
#DBDCA5
accent
#E543E4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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