#504AA5#504AA5

#504AA5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.5% C 0.142 H 282.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#504AA5
RGBrgb(80, 74, 165)
HSLhsl(244, 38%, 47%)
HSVhsv(244, 55%, 65%)
CMYKcmyk(51.5%, 55.2%, 0%, 35.3%)
CIE-LABlab(36.59, 27.90, -48.55)
CIE-LCHlch(36.59, 55.99, 299.88°)
OKLaboklab(46.46% 0.0303 -0.1387)
OKLCHoklch(46.46% 0.142 282.3)
XYZxyz(12.5465, 9.3190, 36.7276)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AA5 #9FA54A
analogous
#4A72A5 #504AA5 #7E4AA5
triadic
#504AA5 #A5504A #4AA550
tetradic
#504AA5 #A54A72 #9FA54A #4AA57E
square
#504AA5 #A54A72 #9FA54A #4AA57E
split-complementary
#504AA5 #A57E4A #72A54A
monochromatic
#272450 #3C377B #504AA5 #736EBE #9C98D1

Accessibility & contrast

On white

7.33
#504AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#504AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AA5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AA5#FFFFFF#000000##FFFFFF
##504AA51.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A8
Deuteranopia (green-blind)
#0953A3
Tritanopia (blue-blind)
#2F5E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504aa5;
/* rgb */ color: rgb(80, 74, 165);
/* oklch */ color: oklch(46.5% 0.142 282.3);
Tailwind
colors: {
  custom: {
    50: '#887cc0',
    500: '#504aa5',
    950: '#000000',
  },
}
SCSS
$custom: #504aa5;
$custom-light: #887cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#504aa5",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 243.956,
    "s": 38.075,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46464,
    "c": 0.14195,
    "h": 282.3
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#504AA5
secondary
#BABD8E
accent
#CE5AC6
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #504AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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