#504DB4#504DB4

#504DB4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.159 H 279.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#504DB4
RGBrgb(80, 77, 180)
HSLhsl(242, 41%, 50%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(55.6%, 57.2%, 0%, 29.4%)
CIE-LABlab(38.39, 30.86, -54.55)
CIE-LCHlch(38.39, 62.67, 299.50°)
OKLaboklab(48.14% 0.0273 -0.1563)
OKLCHoklch(48.14% 0.159 279.9)
XYZxyz(14.1978, 10.3076, 44.4126)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB4 #B1B44D
analogous
#4D7DB4 #504DB4 #844DB4
triadic
#504DB4 #B4504D #4DB450
tetradic
#504DB4 #B44D7D #B1B44D #4DB484
square
#504DB4 #B44D7D #B1B44D #4DB484
split-complementary
#504DB4 #B4844D #7DB44D
monochromatic
#29285F #3C3A8A #504DB4 #7A78C6 #A5A3D8

Accessibility & contrast

On white

6.86
#504DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#504DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DB4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB4#FFFFFF#000000##FFFFFF
##504DB41.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#1F6579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504db4;
/* rgb */ color: rgb(80, 77, 180);
/* oklch */ color: oklch(48.1% 0.159 279.9);
Tailwind
colors: {
  custom: {
    50: '#8a7fcb',
    500: '#504db4',
    950: '#000000',
  },
}
SCSS
$custom: #504db4;
$custom-light: #8a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#504db4",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 241.748,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48135,
    "c": 0.15869,
    "h": 279.9
  },
  "luminance": 0.10309
}

Semantic roles & 50–950 ramp

primary
#504DB4
secondary
#C4C597
accent
#D157CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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