#504FD8#504FD8

#504FD8 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.4% C 0.204 H 276.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#504FD8
RGBrgb(80, 79, 216)
HSLhsl(240, 64%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(63%, 63.4%, 0%, 15.3%)
CIE-LABlab(41.62, 41.39, -70.22)
CIE-LCHlch(41.62, 81.51, 300.52°)
OKLaboklab(51.37% 0.0241 -0.2023)
OKLCHoklch(51.37% 0.204 276.8)
XYZxyz(18.4949, 12.2538, 66.3430)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD8 #D7D84F
analogous
#4F92D8 #504FD8 #944FD8
triadic
#504FD8 #D8504F #4FD850
tetradic
#504FD8 #D84F92 #D7D84F #4FD894
square
#504FD8 #D84F92 #D7D84F #4FD894
split-complementary
#504FD8 #D8944F #92D84F
monochromatic
#201F8D #2B2ABF #504FD8 #8281E3 #B4B3EE

Accessibility & contrast

On white

6.09
#504FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#504FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD8#FFFFFF#000000##FFFFFF
##504FD81.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504fd8;
/* rgb */ color: rgb(80, 79, 216);
/* oklch */ color: oklch(51.4% 0.204 276.8);
Tailwind
colors: {
  custom: {
    50: '#9081e5',
    500: '#504fd8',
    950: '#000000',
  },
}
SCSS
$custom: #504fd8;
$custom-light: #9081e5;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd8",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 240.438,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51373,
    "c": 0.20377,
    "h": 276.8
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#504FD8
secondary
#DCDDA6
accent
#E741E6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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