#504AE2#504AE2

#504AE2 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.4% C 0.222 H 276.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#504AE2
RGBrgb(80, 74, 226)
HSLhsl(242, 72%, 59%)
HSVhsv(242, 67%, 89%)
CMYKcmyk(64.6%, 67.3%, 0%, 11.4%)
CIE-LABlab(41.36, 47.54, -76.34)
CIE-LCHlch(41.36, 89.93, 301.91°)
OKLaboklab(51.45% 0.0268 -0.2203)
OKLCHoklch(51.45% 0.222 276.9)
XYZxyz(19.4800, 12.0924, 73.2443)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AE2 #DCE24A
analogous
#4A90E2 #504AE2 #9C4AE2
triadic
#504AE2 #E2504A #4AE250
tetradic
#504AE2 #E24A90 #DCE24A #4AE29C
square
#504AE2 #E24A90 #DCE24A #4AE29C
split-complementary
#504AE2 #E29C4A #90E24A
monochromatic
#1E1999 #2821CE #504AE2 #837FEA #B6B3F3

Accessibility & contrast

On white

6.14
#504AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#504AE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AE2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AE2#FFFFFF#000000##FFFFFF
##504AE21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#007290
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504ae2;
/* rgb */ color: rgb(80, 74, 226);
/* oklch */ color: oklch(51.4% 0.222 276.9);
Tailwind
colors: {
  custom: {
    50: '#927eec',
    500: '#504ae2',
    950: '#000000',
  },
}
SCSS
$custom: #504ae2;
$custom-light: #927eec;
$custom-dark: #000000;
JSON
{
  "hex": "#504ae2",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 226
  },
  "hsl": {
    "h": 242.368,
    "s": 72.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51447,
    "c": 0.22194,
    "h": 276.9
  },
  "luminance": 0.12094
}

Semantic roles & 50–950 ramp

primary
#504AE2
secondary
#DFE2A6
accent
#EF39E8
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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