#504EB5#504EB5

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

Color values

HEX#504EB5
RGBrgb(80, 78, 181)
HSLhsl(241, 41%, 51%)
HSVhsv(241, 57%, 71%)
CMYKcmyk(55.8%, 56.9%, 0%, 29%)
CIE-LABlab(38.71, 30.56, -54.62)
CIE-LCHlch(38.71, 62.59, 299.23°)
OKLaboklab(48.39% 0.0263 -0.1565)
OKLCHoklch(48.39% 0.159 279.5)
XYZxyz(14.3705, 10.4895, 44.9745)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EB5 #B3B54E
analogous
#4E7FB5 #504EB5 #834EB5
triadic
#504EB5 #B5504E #4EB550
tetradic
#504EB5 #B54E7F #B3B54E #4EB583
square
#504EB5 #B54E7F #B3B54E #4EB583
split-complementary
#504EB5 #B5834E #7FB54E
monochromatic
#292860 #3C3A8B #504EB5 #7B79C7 #A5A4D9

Accessibility & contrast

On white

6.78
#504EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#504EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EB5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EB5#FFFFFF#000000##FFFFFF
##504EB51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#1D667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504eb5;
/* rgb */ color: rgb(80, 78, 181);
/* oklch */ color: oklch(48.4% 0.159 279.5);
Tailwind
colors: {
  custom: {
    50: '#8a7fcc',
    500: '#504eb5',
    950: '#000000',
  },
}
SCSS
$custom: #504eb5;
$custom-light: #8a7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#504eb5",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 241.165,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48394,
    "c": 0.15872,
    "h": 279.5
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#504EB5
secondary
#C5C699
accent
#D157CF
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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