#504EA5#504EA5

#504EA5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.136 H 280.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#504EA5
RGBrgb(80, 78, 165)
HSLhsl(241, 36%, 48%)
HSVhsv(241, 53%, 65%)
CMYKcmyk(51.5%, 52.7%, 0%, 35.3%)
CIE-LABlab(37.61, 25.36, -46.91)
CIE-LCHlch(37.61, 53.33, 298.40°)
OKLaboklab(47.22% 0.0257 -0.1338)
OKLCHoklch(47.22% 0.136 280.9)
XYZxyz(12.8221, 9.8701, 36.8195)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EA5 #A3A54E
analogous
#4E78A5 #504EA5 #7B4EA5
triadic
#504EA5 #A5504E #4EA550
tetradic
#504EA5 #A54E78 #A3A54E #4EA57B
square
#504EA5 #A54E78 #A3A54E #4EA57B
split-complementary
#504EA5 #A57B4E #78A54E
monochromatic
#282752 #3C3A7B #504EA5 #7573BD #9E9DD1

Accessibility & contrast

On white

7.06
#504EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#504EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504EA5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EA5#FFFFFF#000000##FFFFFF
##504EA51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#1855A3
Tritanopia (blue-blind)
#2E6172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ea5;
/* rgb */ color: rgb(80, 78, 165);
/* oklch */ color: oklch(47.2% 0.136 280.9);
Tailwind
colors: {
  custom: {
    50: '#877fc0',
    500: '#504ea5',
    950: '#000000',
  },
}
SCSS
$custom: #504ea5;
$custom-light: #877fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ea5",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 241.379,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.13627,
    "h": 280.9
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#504EA5
secondary
#BCBD91
accent
#CC5CC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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