#504DE5#504DE5

#504DE5 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.2% C 0.222 H 276.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#504DE5
RGBrgb(80, 77, 229)
HSLhsl(241, 75%, 60%)
HSVhsv(241, 66%, 90%)
CMYKcmyk(65.1%, 66.4%, 0%, 10.2%)
CIE-LABlab(42.26, 46.77, -76.57)
CIE-LCHlch(42.26, 89.73, 301.42°)
OKLaboklab(52.18% 0.0244 -0.221)
OKLCHoklch(52.18% 0.222 276.3)
XYZxyz(20.1004, 12.6686, 75.4996)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DE5 #E2E54D
analogous
#4D96E5 #504DE5 #9C4DE5
triadic
#504DE5 #E5504D #4DE550
tetradic
#504DE5 #E54D96 #E2E54D #4DE59C
square
#504DE5 #E54D96 #E2E54D #4DE59C
split-complementary
#504DE5 #E59C4D #96E54D
monochromatic
#1A17A0 #231FD6 #504DE5 #8482ED #B9B8F5

Accessibility & contrast

On white

5.94
#504DE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#504DE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DE5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DE5#FFFFFF#000000##FFFFFF
##504DE51.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AEA
Deuteranopia (green-blind)
#005DE2
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504de5;
/* rgb */ color: rgb(80, 77, 229);
/* oklch */ color: oklch(52.2% 0.222 276.3);
Tailwind
colors: {
  custom: {
    50: '#9280ee',
    500: '#504de5',
    950: '#000000',
  },
}
SCSS
$custom: #504de5;
$custom-light: #9280ee;
$custom-dark: #000000;
JSON
{
  "hex": "#504de5",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 229
  },
  "hsl": {
    "h": 241.184,
    "s": 74.51,
    "l": 60
  },
  "oklch": {
    "l": 0.52175,
    "c": 0.22233,
    "h": 276.3
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#504DE5
secondary
#E3E4AA
accent
#F137ED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #504DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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