#504FE8#504FE8

#504FE8 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.8% C 0.224 H 275.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#504FE8
RGBrgb(80, 79, 232)
HSLhsl(240, 77%, 61%)
HSVhsv(240, 66%, 91%)
CMYKcmyk(65.5%, 65.9%, 0%, 9%)
CIE-LABlab(42.95, 46.58, -77.15)
CIE-LCHlch(42.95, 90.12, 301.12°)
OKLaboklab(52.75% 0.0226 -0.2227)
OKLCHoklch(52.75% 0.224 275.8)
XYZxyz(20.6650, 13.1218, 77.7720)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE8 #E7E84F
analogous
#4F9AE8 #504FE8 #9C4FE8
triadic
#504FE8 #E8504F #4FE850
tetradic
#504FE8 #E84F9A #E7E84F #4FE89C
square
#504FE8 #E84F9A #E7E84F #4FE89C
split-complementary
#504FE8 #E89C4F #9AE84F
monochromatic
#1716A7 #1E1DDD #504FE8 #8685EF #BCBBF6

Accessibility & contrast

On white

5.79
#504FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#504FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FE8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE8#FFFFFF#000000##FFFFFF
##504FE81.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CED
Deuteranopia (green-blind)
#005FE5
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504fe8;
/* rgb */ color: rgb(80, 79, 232);
/* oklch */ color: oklch(52.8% 0.224 275.8);
Tailwind
colors: {
  custom: {
    50: '#9381f1',
    500: '#504fe8',
    950: '#000000',
  },
}
SCSS
$custom: #504fe8;
$custom-light: #9381f1;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe8",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 240.392,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.22382,
    "h": 275.8
  },
  "luminance": 0.13124
}

Semantic roles & 50–950 ramp

primary
#504FE8
secondary
#E6E6AD
accent
#D90CD8
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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