#504AB3#504AB3

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

Color values

HEX#504AB3
RGBrgb(80, 74, 179)
HSLhsl(243, 42%, 50%)
HSVhsv(243, 59%, 70%)
CMYKcmyk(55.3%, 58.7%, 0%, 29.8%)
CIE-LABlab(37.58, 32.41, -55.26)
CIE-LCHlch(37.58, 64.06, 300.39°)
OKLaboklab(47.52% 0.0305 -0.1584)
OKLCHoklch(47.52% 0.161 280.9)
XYZxyz(13.8912, 9.8568, 43.8097)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AB3 #ADB34A
analogous
#4A78B3 #504AB3 #854AB3
triadic
#504AB3 #B3504A #4AB350
tetradic
#504AB3 #B34A78 #ADB34A #4AB385
square
#504AB3 #B34A78 #ADB34A #4AB385
split-complementary
#504AB3 #B3854A #78B34A
monochromatic
#29265C #3D3888 #504AB3 #7974C6 #A3A0D8

Accessibility & contrast

On white

7.07
#504AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504AB3
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AB3#FFFFFF#000000##FFFFFF
##504AB31.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#216377
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ab3;
/* rgb */ color: rgb(80, 74, 179);
/* oklch */ color: oklch(47.5% 0.161 280.9);
Tailwind
colors: {
  custom: {
    50: '#8a7dca',
    500: '#504ab3',
    950: '#000000',
  },
}
SCSS
$custom: #504ab3;
$custom-light: #8a7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#504ab3",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 243.429,
    "s": 41.502,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47516,
    "c": 0.16133,
    "h": 280.9
  },
  "luminance": 0.09858
}

Semantic roles & 50–950 ramp

primary
#504AB3
secondary
#C2C494
accent
#D156CA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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