#504AAD#504AAD

#504AAD is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.153 H 281.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#504AAD
RGBrgb(80, 74, 173)
HSLhsl(244, 40%, 48%)
HSVhsv(244, 57%, 68%)
CMYKcmyk(53.8%, 57.2%, 0%, 32.2%)
CIE-LABlab(37.15, 30.47, -52.41)
CIE-LCHlch(37.15, 60.62, 300.17°)
OKLaboklab(47.06% 0.0305 -0.15)
OKLCHoklch(47.06% 0.153 281.5)
XYZxyz(13.2975, 9.6194, 40.6831)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AAD #A7AD4A
analogous
#4A75AD #504AAD #814AAD
triadic
#504AAD #AD504A #4AAD50
tetradic
#504AAD #AD4A75 #A7AD4A #4AAD81
square
#504AAD #AD4A75 #A7AD4A #4AAD81
split-complementary
#504AAD #AD814A #75AD4A
monochromatic
#282557 #3C3882 #504AAD #7772C3 #A09DD5

Accessibility & contrast

On white

7.18
#504AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504AAD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AAD#FFFFFF#000000##FFFFFF
##504AAD1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#286174
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504aad;
/* rgb */ color: rgb(80, 74, 173);
/* oklch */ color: oklch(47.1% 0.153 281.5);
Tailwind
colors: {
  custom: {
    50: '#897cc6',
    500: '#504aad',
    950: '#000000',
  },
}
SCSS
$custom: #504aad;
$custom-light: #897cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#504aad",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 173
  },
  "hsl": {
    "h": 243.636,
    "s": 40.081,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47058,
    "c": 0.15311,
    "h": 281.5
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#504AAD
secondary
#BFC191
accent
#D058C9
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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