#504EC7#504EC7

#504EC7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.8% C 0.183 H 278.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#504EC7
RGBrgb(80, 78, 199)
HSLhsl(241, 52%, 54%)
HSVhsv(241, 61%, 78%)
CMYKcmyk(59.8%, 60.8%, 0%, 22%)
CIE-LABlab(40.04, 36.45, -62.98)
CIE-LCHlch(40.04, 72.77, 300.06°)
OKLaboklab(49.8% 0.026 -0.1811)
OKLCHoklch(49.8% 0.183 278.2)
XYZxyz(16.3382, 11.2766, 55.3374)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EC7 #C5C74E
analogous
#4E89C7 #504EC7 #8D4EC7
triadic
#504EC7 #C7504E #4EC750
tetradic
#504EC7 #C74E89 #C5C74E #4EC78D
square
#504EC7 #C74E89 #C5C74E #4EC78D
split-complementary
#504EC7 #C78D4E #89C74E
monochromatic
#262575 #3634A4 #504EC7 #7E7CD6 #ACABE4

Accessibility & contrast

On white

6.45
#504EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#504EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EC7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EC7#FFFFFF#000000##FFFFFF
##504EC71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504ec7;
/* rgb */ color: rgb(80, 78, 199);
/* oklch */ color: oklch(49.8% 0.183 278.2);
Tailwind
colors: {
  custom: {
    50: '#8d80d9',
    500: '#504ec7',
    950: '#000000',
  },
}
SCSS
$custom: #504ec7;
$custom-light: #8d80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#504ec7",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 240.992,
    "s": 51.931,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49801,
    "c": 0.18295,
    "h": 278.2
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

primary
#504EC7
secondary
#D1D29F
accent
#DB4CD9
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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