#504AA8#504AA8

#504AA8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.146 H 282.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#504AA8
RGBrgb(80, 74, 168)
HSLhsl(244, 39%, 47%)
HSVhsv(244, 56%, 66%)
CMYKcmyk(52.4%, 56%, 0%, 34.1%)
CIE-LABlab(36.80, 28.86, -50.00)
CIE-LCHlch(36.80, 57.74, 299.99°)
OKLaboklab(46.68% 0.0304 -0.143)
OKLCHoklch(46.68% 0.146 282)
XYZxyz(12.8228, 9.4295, 38.1826)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AA8 #A2A84A
analogous
#4A73A8 #504AA8 #7F4AA8
triadic
#504AA8 #A8504A #4AA850
tetradic
#504AA8 #A84A73 #A2A84A #4AA87F
square
#504AA8 #A84A73 #A2A84A #4AA87F
split-complementary
#504AA8 #A87F4A #73A84A
monochromatic
#282553 #3C377E #504AA8 #756FC0 #9E9AD2

Accessibility & contrast

On white

7.28
#504AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#504AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AA8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AA8#FFFFFF#000000##FFFFFF
##504AA81.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#2C5F72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504aa8;
/* rgb */ color: rgb(80, 74, 168);
/* oklch */ color: oklch(46.7% 0.146 282.0);
Tailwind
colors: {
  custom: {
    50: '#887cc2',
    500: '#504aa8',
    950: '#000000',
  },
}
SCSS
$custom: #504aa8;
$custom-light: #887cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#504aa8",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 243.83,
    "s": 38.843,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46684,
    "c": 0.14616,
    "h": 282
  },
  "luminance": 0.0943
}

Semantic roles & 50–950 ramp

primary
#504AA8
secondary
#BCBF8F
accent
#CF59C7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #504AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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