#504CE1#504CE1

#504CE1 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.7% C 0.218 H 276.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#504CE1
RGBrgb(80, 76, 225)
HSLhsl(242, 71%, 59%)
HSVhsv(242, 66%, 88%)
CMYKcmyk(64.4%, 66.2%, 0%, 11.8%)
CIE-LABlab(41.70, 46.07, -75.21)
CIE-LCHlch(41.70, 88.20, 301.49°)
OKLaboklab(51.67% 0.0255 -0.217)
OKLCHoklch(51.67% 0.219 276.7)
XYZxyz(19.4789, 12.3090, 72.5689)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE1 #DDE14C
analogous
#4C93E1 #504CE1 #9B4CE1
triadic
#504CE1 #E1504C #4CE150
tetradic
#504CE1 #E14C93 #DDE14C #4CE19B
square
#504CE1 #E14C93 #DDE14C #4CE19B
split-complementary
#504CE1 #E19B4C #93E14C
monochromatic
#1D1A99 #2722CD #504CE1 #8380EA #B6B5F3

Accessibility & contrast

On white

6.07
#504CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#504CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE1
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE1#FFFFFF#000000##FFFFFF
##504CE11.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#007390
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504ce1;
/* rgb */ color: rgb(80, 76, 225);
/* oklch */ color: oklch(51.7% 0.218 276.7);
Tailwind
colors: {
  custom: {
    50: '#927fec',
    500: '#504ce1',
    950: '#000000',
  },
}
SCSS
$custom: #504ce1;
$custom-light: #927fec;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce1",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 225
  },
  "hsl": {
    "h": 241.611,
    "s": 71.292,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51667,
    "c": 0.2185,
    "h": 276.7
  },
  "luminance": 0.12311
}

Semantic roles & 50–950 ramp

primary
#504CE1
secondary
#E0E2A7
accent
#EE3AE9
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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