#504AAA#504AAA

#504AAA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.149 H 281.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#504AAA
RGBrgb(80, 74, 170)
HSLhsl(244, 39%, 48%)
HSVhsv(244, 56%, 67%)
CMYKcmyk(52.9%, 56.5%, 0%, 33.3%)
CIE-LABlab(36.94, 29.50, -50.97)
CIE-LCHlch(36.94, 58.89, 300.06°)
OKLaboklab(46.83% 0.0304 -0.1458)
OKLCHoklch(46.83% 0.149 281.8)
XYZxyz(13.0105, 9.5046, 39.1714)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AAA #A4AA4A
analogous
#4A74AA #504AAA #804AAA
triadic
#504AAA #AA504A #4AAA50
tetradic
#504AAA #AA4A74 #A4AA4A #4AAA80
square
#504AAA #AA4A74 #A4AA4A #4AAA80
split-complementary
#504AAA #AA804A #74AA4A
monochromatic
#282555 #3C377F #504AAA #7570C1 #9E9BD3

Accessibility & contrast

On white

7.24
#504AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#504AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AAA
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AAA#FFFFFF#000000##FFFFFF
##504AAA1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065AAD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#2A6073
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504aaa;
/* rgb */ color: rgb(80, 74, 170);
/* oklch */ color: oklch(46.8% 0.149 281.8);
Tailwind
colors: {
  custom: {
    50: '#887cc4',
    500: '#504aaa',
    950: '#000000',
  },
}
SCSS
$custom: #504aaa;
$custom-light: #887cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#504aaa",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 243.75,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.14895,
    "h": 281.8
  },
  "luminance": 0.09505
}

Semantic roles & 50–950 ramp

primary
#504AAA
secondary
#BDC090
accent
#CF59C8
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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