#504DE8#504DE8

#504DE8 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.4% C 0.226 H 276.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#504DE8
RGBrgb(80, 77, 232)
HSLhsl(241, 77%, 61%)
HSVhsv(241, 67%, 91%)
CMYKcmyk(65.5%, 66.8%, 0%, 9%)
CIE-LABlab(42.52, 47.73, -77.85)
CIE-LCHlch(42.52, 91.32, 301.51°)
OKLaboklab(52.44% 0.024 -0.2247)
OKLCHoklch(52.44% 0.226 276.1)
XYZxyz(20.5229, 12.8376, 77.7247)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DE8 #E5E84D
analogous
#4D98E8 #504DE8 #9D4DE8
triadic
#504DE8 #E8504D #4DE850
tetradic
#504DE8 #E84D98 #E5E84D #4DE89D
square
#504DE8 #E84D98 #E5E84D #4DE89D
split-complementary
#504DE8 #E89D4D #98E84D
monochromatic
#1815A5 #201CDB #504DE8 #8583EF #BBB9F6

Accessibility & contrast

On white

5.89
#504DE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#504DE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DE8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DE8#FFFFFF#000000##FFFFFF
##504DE81.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BED
Deuteranopia (green-blind)
#005DE5
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504de8;
/* rgb */ color: rgb(80, 77, 232);
/* oklch */ color: oklch(52.4% 0.226 276.1);
Tailwind
colors: {
  custom: {
    50: '#9380f1',
    500: '#504de8',
    950: '#000000',
  },
}
SCSS
$custom: #504de8;
$custom-light: #9380f1;
$custom-dark: #000000;
JSON
{
  "hex": "#504de8",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 232
  },
  "hsl": {
    "h": 241.161,
    "s": 77.114,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52441,
    "c": 0.22601,
    "h": 276.1
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#504DE8
secondary
#E5E6AB
accent
#D90CD5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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