#504FD7#504FD7

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

Color values

HEX#504FD7
RGBrgb(80, 79, 215)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 63%, 84%)
CMYKcmyk(62.8%, 63.3%, 0%, 15.7%)
CIE-LABlab(41.54, 41.07, -69.77)
CIE-LCHlch(41.54, 80.96, 300.48°)
OKLaboklab(51.29% 0.0242 -0.201)
OKLCHoklch(51.29% 0.203 276.9)
XYZxyz(18.3660, 12.2022, 65.6642)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD7 #D6D74F
analogous
#4F92D7 #504FD7 #944FD7
triadic
#504FD7 #D7504F #4FD750
tetradic
#504FD7 #D74F92 #D6D74F #4FD794
square
#504FD7 #D74F92 #D6D74F #4FD794
split-complementary
#504FD7 #D7944F #92D74F
monochromatic
#21208C #2C2BBE #504FD7 #8281E2 #B3B3EE

Accessibility & contrast

On white

6.10
#504FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#504FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD7
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD7#FFFFFF#000000##FFFFFF
##504FD71.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504fd7;
/* rgb */ color: rgb(80, 79, 215);
/* oklch */ color: oklch(51.3% 0.203 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f81e4',
    500: '#504fd7',
    950: '#000000',
  },
}
SCSS
$custom: #504fd7;
$custom-light: #8f81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd7",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 240.441,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51289,
    "c": 0.2025,
    "h": 276.9
  },
  "luminance": 0.12204
}

Semantic roles & 50–950 ramp

primary
#504FD7
secondary
#DCDCA6
accent
#E642E5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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