#504CE2#504CE2

#504CE2 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.8% C 0.220 H 276.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#504CE2
RGBrgb(80, 76, 226)
HSLhsl(242, 72%, 59%)
HSVhsv(242, 66%, 89%)
CMYKcmyk(64.6%, 66.4%, 0%, 11.4%)
CIE-LABlab(41.79, 46.39, -75.64)
CIE-LCHlch(41.79, 88.73, 301.52°)
OKLaboklab(51.76% 0.0254 -0.2183)
OKLCHoklch(51.76% 0.22 276.6)
XYZxyz(19.6157, 12.3637, 73.2895)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE2 #DEE24C
analogous
#4C93E2 #504CE2 #9B4CE2
triadic
#504CE2 #E2504C #4CE250
tetradic
#504CE2 #E24C93 #DEE24C #4CE29B
square
#504CE2 #E24C93 #DEE24C #4CE29B
split-complementary
#504CE2 #E29B4C #93E24C
monochromatic
#1C199B #2622CF #504CE2 #8381EB #B7B5F3

Accessibility & contrast

On white

6.05
#504CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#504CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE2#FFFFFF#000000##FFFFFF
##504CE21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#005CDF
Tritanopia (blue-blind)
#007491
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #504ce2;
/* rgb */ color: rgb(80, 76, 226);
/* oklch */ color: oklch(51.8% 0.220 276.6);
Tailwind
colors: {
  custom: {
    50: '#927fec',
    500: '#504ce2',
    950: '#000000',
  },
}
SCSS
$custom: #504ce2;
$custom-light: #927fec;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce2",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 241.6,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.51755,
    "c": 0.21974,
    "h": 276.6
  },
  "luminance": 0.12365
}

Semantic roles & 50–950 ramp

primary
#504CE2
secondary
#E1E2A8
accent
#EF39EA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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