#504CB5#504CB5

#504CB5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.161 H 280.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#504CB5
RGBrgb(80, 76, 181)
HSLhsl(242, 42%, 50%)
HSVhsv(242, 58%, 71%)
CMYKcmyk(55.8%, 58%, 0%, 29%)
CIE-LABlab(38.22, 31.81, -55.42)
CIE-LCHlch(38.22, 63.90, 299.86°)
OKLaboklab(48.03% 0.0284 -0.1589)
OKLCHoklch(48.03% 0.161 280.1)
XYZxyz(14.2306, 10.2096, 44.9279)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB5 #B1B54C
analogous
#4C7CB5 #504CB5 #854CB5
triadic
#504CB5 #B5504C #4CB550
tetradic
#504CB5 #B54C7C #B1B54C #4CB585
square
#504CB5 #B54C7C #B1B54C #4CB585
split-complementary
#504CB5 #B5854C #7CB54C
monochromatic
#29275F #3C398B #504CB5 #7A77C7 #A5A3D9

Accessibility & contrast

On white

6.90
#504CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#504CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB5#FFFFFF#000000##FFFFFF
##504CB51.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#1D6579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb5;
/* rgb */ color: rgb(80, 76, 181);
/* oklch */ color: oklch(48.0% 0.161 280.1);
Tailwind
colors: {
  custom: {
    50: '#8a7ecc',
    500: '#504cb5',
    950: '#000000',
  },
}
SCSS
$custom: #504cb5;
$custom-light: #8a7ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb5",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 242.286,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4803,
    "c": 0.16139,
    "h": 280.1
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#504CB5
secondary
#C4C697
accent
#D156CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #504CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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