#504EE5#504EE5

#504EE5 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.3% C 0.221 H 276.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#504EE5
RGBrgb(80, 78, 229)
HSLhsl(241, 74%, 60%)
HSVhsv(241, 66%, 90%)
CMYKcmyk(65.1%, 65.9%, 0%, 10.2%)
CIE-LABlab(42.48, 46.19, -76.22)
CIE-LCHlch(42.48, 89.12, 301.22°)
OKLaboklab(52.33% 0.0237 -0.2199)
OKLCHoklch(52.33% 0.221 276.1)
XYZxyz(20.1709, 12.8097, 75.5231)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EE5 #E3E54E
analogous
#4E97E5 #504EE5 #9C4EE5
triadic
#504EE5 #E5504E #4EE550
tetradic
#504EE5 #E54E97 #E3E54E #4EE59C
square
#504EE5 #E54E97 #E3E54E #4EE59C
split-complementary
#504EE5 #E59C4E #97E54E
monochromatic
#1918A1 #221FD6 #504EE5 #8583ED #BAB9F5

Accessibility & contrast

On white

5.90
#504EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#504EE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EE5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EE5#FFFFFF#000000##FFFFFF
##504EE51.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#005EE2
Tritanopia (blue-blind)
#007693
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504ee5;
/* rgb */ color: rgb(80, 78, 229);
/* oklch */ color: oklch(52.3% 0.221 276.1);
Tailwind
colors: {
  custom: {
    50: '#9280ee',
    500: '#504ee5',
    950: '#000000',
  },
}
SCSS
$custom: #504ee5;
$custom-light: #9280ee;
$custom-dark: #000000;
JSON
{
  "hex": "#504ee5",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 240.795,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52331,
    "c": 0.22122,
    "h": 276.1
  },
  "luminance": 0.12811
}

Semantic roles & 50–950 ramp

primary
#504EE5
secondary
#E4E4AA
accent
#D70FD4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #504EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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