#504FE7#504FE7

#504FE7 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.7% C 0.223 H 275.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#504FE7
RGBrgb(80, 79, 231)
HSLhsl(240, 76%, 61%)
HSVhsv(240, 66%, 91%)
CMYKcmyk(65.4%, 65.8%, 0%, 9.4%)
CIE-LABlab(42.86, 46.25, -76.72)
CIE-LCHlch(42.86, 89.59, 301.09°)
OKLaboklab(52.66% 0.0227 -0.2214)
OKLCHoklch(52.66% 0.223 275.9)
XYZxyz(20.5233, 13.0652, 77.0261)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE7 #E6E74F
analogous
#4F9AE7 #504FE7 #9C4FE7
triadic
#504FE7 #E7504F #4FE750
tetradic
#504FE7 #E74F9A #E6E74F #4FE79C
square
#504FE7 #E74F9A #E6E74F #4FE79C
split-complementary
#504FE7 #E79C4F #9AE74F
monochromatic
#1717A5 #1F1EDB #504FE7 #8685EE #BBBBF6

Accessibility & contrast

On white

5.81
#504FE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#504FE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FE7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE7#FFFFFF#000000##FFFFFF
##504FE71.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504fe7;
/* rgb */ color: rgb(80, 79, 231);
/* oklch */ color: oklch(52.7% 0.223 275.9);
Tailwind
colors: {
  custom: {
    50: '#9281f0',
    500: '#504fe7',
    950: '#000000',
  },
}
SCSS
$custom: #504fe7;
$custom-light: #9281f0;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe7",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 240.395,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52663,
    "c": 0.22258,
    "h": 275.9
  },
  "luminance": 0.13067
}

Semantic roles & 50–950 ramp

primary
#504FE7
secondary
#E5E6AC
accent
#D80DD7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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