#504DB8#504DB8

#504DB8 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.4% C 0.164 H 279.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#504DB8
RGBrgb(80, 77, 184)
HSLhsl(242, 43%, 51%)
HSVhsv(242, 58%, 72%)
CMYKcmyk(56.5%, 58.2%, 0%, 27.8%)
CIE-LABlab(38.68, 32.16, -56.44)
CIE-LCHlch(38.68, 64.96, 299.68°)
OKLaboklab(48.44% 0.0273 -0.1619)
OKLCHoklch(48.44% 0.164 279.6)
XYZxyz(14.6112, 10.4730, 46.5897)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB8 #B5B84D
analogous
#4D7FB8 #504DB8 #854DB8
triadic
#504DB8 #B8504D #4DB850
tetradic
#504DB8 #B84D7F #B5B84D #4DB885
square
#504DB8 #B84D7F #B5B84D #4DB885
split-complementary
#504DB8 #B8854D #7FB84D
monochromatic
#292863 #3B398F #504DB8 #7B79C9 #A6A4DB

Accessibility & contrast

On white

6.79
#504DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#504DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DB8
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB8#FFFFFF#000000##FFFFFF
##504DB81.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#18667B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504db8;
/* rgb */ color: rgb(80, 77, 184);
/* oklch */ color: oklch(48.4% 0.164 279.6);
Tailwind
colors: {
  custom: {
    50: '#8a7fce',
    500: '#504db8',
    950: '#000000',
  },
}
SCSS
$custom: #504db8;
$custom-light: #8a7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#504db8",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 241.682,
    "s": 42.972,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48441,
    "c": 0.16415,
    "h": 279.6
  },
  "luminance": 0.10474
}

Semantic roles & 50–950 ramp

primary
#504DB8
secondary
#C7C899
accent
#D355CF
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #504DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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