#504EF5#504EF5

#504EF5 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.8% C 0.241 H 275.2°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#504EF5
RGBrgb(80, 78, 245)
HSLhsl(241, 89%, 63%)
HSVhsv(241, 68%, 96%)
CMYKcmyk(67.3%, 68.2%, 0%, 3.9%)
CIE-LABlab(43.86, 51.31, -82.97)
CIE-LCHlch(43.86, 97.55, 301.73°)
OKLaboklab(53.76% 0.0217 -0.2397)
OKLCHoklch(53.76% 0.241 275.2)
XYZxyz(22.5086, 13.7448, 87.8353)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EF5 #F3F54E
analogous
#4E9FF5 #504EF5 #A44EF5
triadic
#504EF5 #F5504E #4EF550
tetradic
#504EF5 #F54E9F #F3F54E #4EF5A4
square
#504EF5 #F54E9F #F3F54E #4EF5A4
split-complementary
#504EF5 #F5A44E #9FF54E
monochromatic
#0D0BBE #1714F2 #504EF5 #8988F8 #C3C2FC

Accessibility & contrast

On white

5.60
#504EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#504EF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EF5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EF5#FFFFFF#000000##FFFFFF
##504EF51.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFA
Deuteranopia (green-blind)
#0060F2
Tritanopia (blue-blind)
#007B9C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #504ef5;
/* rgb */ color: rgb(80, 78, 245);
/* oklch */ color: oklch(53.8% 0.241 275.2);
Tailwind
colors: {
  custom: {
    50: '#9581fa',
    500: '#504ef5',
    950: '#000000',
  },
}
SCSS
$custom: #504ef5;
$custom-light: #9581fa;
$custom-dark: #000000;
JSON
{
  "hex": "#504ef5",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 245
  },
  "hsl": {
    "h": 240.719,
    "s": 89.305,
    "l": 63.333
  },
  "oklch": {
    "l": 0.53759,
    "c": 0.24067,
    "h": 275.2
  },
  "luminance": 0.13747
}

Semantic roles & 50–950 ramp

primary
#504EF5
secondary
#ECEDB2
accent
#E600E3
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #504EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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