#504CA5#504CA5

#504CA5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.139 H 281.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#504CA5
RGBrgb(80, 76, 165)
HSLhsl(243, 37%, 47%)
HSVhsv(243, 54%, 65%)
CMYKcmyk(51.5%, 53.9%, 0%, 35.3%)
CIE-LABlab(37.10, 26.63, -47.73)
CIE-LCHlch(37.10, 54.66, 299.16°)
OKLaboklab(46.84% 0.028 -0.1363)
OKLCHoklch(46.84% 0.139 281.6)
XYZxyz(12.6822, 9.5903, 36.7729)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA5 #A1A54C
analogous
#4C74A5 #504CA5 #7D4CA5
triadic
#504CA5 #A5504C #4CA550
tetradic
#504CA5 #A54C74 #A1A54C #4CA57D
square
#504CA5 #A54C74 #A1A54C #4CA57D
split-complementary
#504CA5 #A57D4C #74A54C
monochromatic
#272551 #3C397B #504CA5 #7471BD #9D9BD1

Accessibility & contrast

On white

7.20
#504CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#504CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA5#FFFFFF#000000##FFFFFF
##504CA51.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA8
Deuteranopia (green-blind)
#1254A3
Tritanopia (blue-blind)
#2F6071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504ca5;
/* rgb */ color: rgb(80, 76, 165);
/* oklch */ color: oklch(46.8% 0.139 281.6);
Tailwind
colors: {
  custom: {
    50: '#877ec0',
    500: '#504ca5',
    950: '#000000',
  },
}
SCSS
$custom: #504ca5;
$custom-light: #877ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca5",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 242.697,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46841,
    "c": 0.13912,
    "h": 281.6
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#504CA5
secondary
#BBBD8F
accent
#CD5BC8
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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