#504CE4#504CE4

#504CE4 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.9% C 0.222 H 276.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#504CE4
RGBrgb(80, 76, 228)
HSLhsl(242, 74%, 60%)
HSVhsv(242, 67%, 89%)
CMYKcmyk(64.9%, 66.7%, 0%, 10.6%)
CIE-LABlab(41.96, 47.03, -76.50)
CIE-LCHlch(41.96, 89.80, 301.58°)
OKLaboklab(51.93% 0.0252 -0.2208)
OKLCHoklch(51.93% 0.222 276.5)
XYZxyz(19.8917, 12.4741, 74.7432)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE4 #E0E44C
analogous
#4C94E4 #504CE4 #9C4CE4
triadic
#504CE4 #E4504C #4CE450
tetradic
#504CE4 #E44C94 #E0E44C #4CE49C
square
#504CE4 #E44C94 #E0E44C #4CE49C
split-complementary
#504CE4 #E49C4C #94E44C
monochromatic
#1B189E #2520D3 #504CE4 #8481EC #B8B6F4

Accessibility & contrast

On white

6.01
#504CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#504CE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE4#FFFFFF#000000##FFFFFF
##504CE41.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE9
Deuteranopia (green-blind)
#005CE1
Tritanopia (blue-blind)
#007492
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #504ce4;
/* rgb */ color: rgb(80, 76, 228);
/* oklch */ color: oklch(51.9% 0.222 276.5);
Tailwind
colors: {
  custom: {
    50: '#927fee',
    500: '#504ce4',
    950: '#000000',
  },
}
SCSS
$custom: #504ce4;
$custom-light: #927fee;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce4",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 228
  },
  "hsl": {
    "h": 241.579,
    "s": 73.786,
    "l": 59.608
  },
  "oklch": {
    "l": 0.51932,
    "c": 0.22219,
    "h": 276.5
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

primary
#504CE4
secondary
#E2E3A8
accent
#F037EC
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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