#504EC1#504EC1

#504EC1 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.3% C 0.175 H 278.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#504EC1
RGBrgb(80, 78, 193)
HSLhsl(241, 48%, 53%)
HSVhsv(241, 60%, 76%)
CMYKcmyk(58.5%, 59.6%, 0%, 24.3%)
CIE-LABlab(39.59, 34.48, -60.23)
CIE-LCHlch(39.59, 69.40, 299.79°)
OKLaboklab(49.32% 0.0262 -0.173)
OKLCHoklch(49.32% 0.175 278.6)
XYZxyz(15.6552, 11.0034, 51.7406)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EC1 #BFC14E
analogous
#4E86C1 #504EC1 #894EC1
triadic
#504EC1 #C1504E #4EC150
tetradic
#504EC1 #C14E86 #BFC14E #4EC189
square
#504EC1 #C14E86 #BFC14E #4EC189
split-complementary
#504EC1 #C1894E #86C14E
monochromatic
#28276E #38369B #504EC1 #7D7BD1 #AAA9E1

Accessibility & contrast

On white

6.56
#504EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#504EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EC1
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EC1#FFFFFF#000000##FFFFFF
##504EC11.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#006A80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504ec1;
/* rgb */ color: rgb(80, 78, 193);
/* oklch */ color: oklch(49.3% 0.175 278.6);
Tailwind
colors: {
  custom: {
    50: '#8c80d5',
    500: '#504ec1',
    950: '#000000',
  },
}
SCSS
$custom: #504ec1;
$custom-light: #8c80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#504ec1",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 241.043,
    "s": 48.117,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49322,
    "c": 0.17499,
    "h": 278.6
  },
  "luminance": 0.11005
}

Semantic roles & 50–950 ramp

primary
#504EC1
secondary
#CDCE9D
accent
#D850D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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