#504EC2#504EC2

#504EC2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.4% C 0.176 H 278.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#504EC2
RGBrgb(80, 78, 194)
HSLhsl(241, 49%, 53%)
HSVhsv(241, 60%, 76%)
CMYKcmyk(58.8%, 59.8%, 0%, 23.9%)
CIE-LABlab(39.66, 34.81, -60.69)
CIE-LCHlch(39.66, 69.97, 299.84°)
OKLaboklab(49.4% 0.0262 -0.1744)
OKLCHoklch(49.4% 0.176 278.5)
XYZxyz(15.7672, 11.0482, 52.3301)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EC2 #C0C24E
analogous
#4E86C2 #504EC2 #8A4EC2
triadic
#504EC2 #C2504E #4EC250
tetradic
#504EC2 #C24E86 #C0C24E #4EC28A
square
#504EC2 #C24E86 #C0C24E #4EC28A
split-complementary
#504EC2 #C28A4E #86C24E
monochromatic
#28266F #38369D #504EC2 #7D7CD2 #AAA9E1

Accessibility & contrast

On white

6.54
#504EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#504EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EC2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EC2#FFFFFF#000000##FFFFFF
##504EC21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504ec2;
/* rgb */ color: rgb(80, 78, 194);
/* oklch */ color: oklch(49.4% 0.176 278.5);
Tailwind
colors: {
  custom: {
    50: '#8c80d5',
    500: '#504ec2',
    950: '#000000',
  },
}
SCSS
$custom: #504ec2;
$custom-light: #8c80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#504ec2",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 241.034,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49401,
    "c": 0.17633,
    "h": 278.5
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#504EC2
secondary
#CECF9D
accent
#D850D6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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