#504EC8#504EC8

#504EC8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.9% C 0.184 H 278.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#504EC8
RGBrgb(80, 78, 200)
HSLhsl(241, 53%, 55%)
HSVhsv(241, 61%, 78%)
CMYKcmyk(60%, 61%, 0%, 21.6%)
CIE-LABlab(40.12, 36.77, -63.44)
CIE-LCHlch(40.12, 73.32, 300.10°)
OKLaboklab(49.88% 0.0259 -0.1824)
OKLCHoklch(49.88% 0.184 278.1)
XYZxyz(16.4546, 11.3232, 55.9509)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EC8 #C6C84E
analogous
#4E89C8 #504EC8 #8D4EC8
triadic
#504EC8 #C8504E #4EC850
tetradic
#504EC8 #C84E89 #C6C84E #4EC88D
square
#504EC8 #C84E89 #C6C84E #4EC88D
split-complementary
#504EC8 #C88D4E #89C84E
monochromatic
#262577 #3533A5 #504EC8 #7E7DD7 #ACABE5

Accessibility & contrast

On white

6.43
#504EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504EC8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EC8#FFFFFF#000000##FFFFFF
##504EC81.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504ec8;
/* rgb */ color: rgb(80, 78, 200);
/* oklch */ color: oklch(49.9% 0.184 278.1);
Tailwind
colors: {
  custom: {
    50: '#8d80da',
    500: '#504ec8',
    950: '#000000',
  },
}
SCSS
$custom: #504ec8;
$custom-light: #8d80da;
$custom-dark: #000000;
JSON
{
  "hex": "#504ec8",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 240.984,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49882,
    "c": 0.18427,
    "h": 278.1
  },
  "luminance": 0.11324
}

Semantic roles & 50–950 ramp

primary
#504EC8
secondary
#D2D39F
accent
#DC4CDA
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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