#504FE4#504FE4

#504FE4 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.4% C 0.219 H 276.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#504FE4
RGBrgb(80, 79, 228)
HSLhsl(240, 73%, 60%)
HSVhsv(240, 65%, 89%)
CMYKcmyk(64.9%, 65.4%, 0%, 10.6%)
CIE-LABlab(42.61, 45.29, -75.44)
CIE-LCHlch(42.61, 87.98, 300.98°)
OKLaboklab(52.4% 0.023 -0.2176)
OKLCHoklch(52.4% 0.219 276)
XYZxyz(20.1033, 12.8971, 74.8137)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE4 #E3E44F
analogous
#4F98E4 #504FE4 #9B4FE4
triadic
#504FE4 #E4504F #4FE450
tetradic
#504FE4 #E44F98 #E3E44F #4FE49B
square
#504FE4 #E44F98 #E3E44F #4FE49B
split-complementary
#504FE4 #E49B4F #98E44F
monochromatic
#1919A0 #2221D5 #504FE4 #8584EC #BAB9F4

Accessibility & contrast

On white

5.87
#504FE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#504FE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FE4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE4#FFFFFF#000000##FFFFFF
##504FE41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE9
Deuteranopia (green-blind)
#005EE1
Tritanopia (blue-blind)
#007693
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504fe4;
/* rgb */ color: rgb(80, 79, 228);
/* oklch */ color: oklch(52.4% 0.219 276.0);
Tailwind
colors: {
  custom: {
    50: '#9281ee',
    500: '#504fe4',
    950: '#000000',
  },
}
SCSS
$custom: #504fe4;
$custom-light: #9281ee;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe4",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 228
  },
  "hsl": {
    "h": 240.403,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52401,
    "c": 0.21887,
    "h": 276
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#504FE4
secondary
#E4E4AB
accent
#D610D4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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