#504CE3#504CE3

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

Color values

HEX#504CE3
RGBrgb(80, 76, 227)
HSLhsl(242, 73%, 59%)
HSVhsv(242, 67%, 89%)
CMYKcmyk(64.8%, 66.5%, 0%, 11%)
CIE-LABlab(41.87, 46.71, -76.07)
CIE-LCHlch(41.87, 89.27, 301.55°)
OKLaboklab(51.84% 0.0253 -0.2195)
OKLCHoklch(51.84% 0.221 276.6)
XYZxyz(19.7533, 12.4187, 74.0142)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CE3 #DFE34C
analogous
#4C94E3 #504CE3 #9B4CE3
triadic
#504CE3 #E3504C #4CE350
tetradic
#504CE3 #E34C94 #DFE34C #4CE39B
square
#504CE3 #E34C94 #DFE34C #4CE39B
split-complementary
#504CE3 #E39B4C #94E34C
monochromatic
#1C189C #2521D1 #504CE3 #8481EB #B7B6F4

Accessibility & contrast

On white

6.03
#504CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#504CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CE3
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CE3#FFFFFF#000000##FFFFFF
##504CE31.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504ce3;
/* rgb */ color: rgb(80, 76, 227);
/* oklch */ color: oklch(51.8% 0.221 276.6);
Tailwind
colors: {
  custom: {
    50: '#927fed',
    500: '#504ce3',
    950: '#000000',
  },
}
SCSS
$custom: #504ce3;
$custom-light: #927fed;
$custom-dark: #000000;
JSON
{
  "hex": "#504ce3",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 241.589,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.51843,
    "c": 0.22096,
    "h": 276.6
  },
  "luminance": 0.1242
}

Semantic roles & 50–950 ramp

primary
#504CE3
secondary
#E1E3A8
accent
#F038EB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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