#504AB2#504AB2

#504AB2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.4% C 0.160 H 281.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#504AB2
RGBrgb(80, 74, 178)
HSLhsl(243, 41%, 49%)
HSVhsv(243, 58%, 70%)
CMYKcmyk(55.1%, 58.4%, 0%, 30.2%)
CIE-LABlab(37.51, 32.08, -54.79)
CIE-LCHlch(37.51, 63.49, 300.35°)
OKLaboklab(47.44% 0.0305 -0.157)
OKLCHoklch(47.44% 0.16 281)
XYZxyz(13.7904, 9.8165, 43.2790)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AB2 #ACB24A
analogous
#4A78B2 #504AB2 #844AB2
triadic
#504AB2 #B2504A #4AB250
tetradic
#504AB2 #B24A78 #ACB24A #4AB284
square
#504AB2 #B24A78 #ACB24A #4AB284
split-complementary
#504AB2 #B2844A #78B24A
monochromatic
#29265C #3D3887 #504AB2 #7974C5 #A29FD7

Accessibility & contrast

On white

7.09
#504AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#504AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AB2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AB2#FFFFFF#000000##FFFFFF
##504AB21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#226277
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ab2;
/* rgb */ color: rgb(80, 74, 178);
/* oklch */ color: oklch(47.4% 0.160 281.0);
Tailwind
colors: {
  custom: {
    50: '#8a7dca',
    500: '#504ab2',
    950: '#000000',
  },
}
SCSS
$custom: #504ab2;
$custom-light: #8a7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#504ab2",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 243.462,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47439,
    "c": 0.15997,
    "h": 281
  },
  "luminance": 0.09817
}

Semantic roles & 50–950 ramp

primary
#504AB2
secondary
#C1C494
accent
#D157CA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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