#504DB7#504DB7

#504DB7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.4% C 0.163 H 279.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#504DB7
RGBrgb(80, 77, 183)
HSLhsl(242, 42%, 51%)
HSVhsv(242, 58%, 72%)
CMYKcmyk(56.3%, 57.9%, 0%, 28.2%)
CIE-LABlab(38.61, 31.84, -55.97)
CIE-LCHlch(38.61, 64.39, 299.63°)
OKLaboklab(48.36% 0.0273 -0.1605)
OKLCHoklch(48.36% 0.163 279.7)
XYZxyz(14.5067, 10.4312, 46.0396)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB7 #B4B74D
analogous
#4D7FB7 #504DB7 #854DB7
triadic
#504DB7 #B7504D #4DB750
tetradic
#504DB7 #B74D7F #B4B74D #4DB785
square
#504DB7 #B74D7F #B4B74D #4DB785
split-complementary
#504DB7 #B7854D #7FB74D
monochromatic
#292862 #3C398E #504DB7 #7B79C9 #A6A4DA

Accessibility & contrast

On white

6.80
#504DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504DB7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB7#FFFFFF#000000##FFFFFF
##504DB71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#1A667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504db7;
/* rgb */ color: rgb(80, 77, 183);
/* oklch */ color: oklch(48.4% 0.163 279.7);
Tailwind
colors: {
  custom: {
    50: '#8a7fcd',
    500: '#504db7',
    950: '#000000',
  },
}
SCSS
$custom: #504db7;
$custom-light: #8a7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#504db7",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 241.698,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48364,
    "c": 0.16279,
    "h": 279.7
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#504DB7
secondary
#C6C798
accent
#D256CF
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #504DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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