#504AB7#504AB7

#504AB7 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.8% C 0.167 H 280.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#504AB7
RGBrgb(80, 74, 183)
HSLhsl(243, 43%, 50%)
HSVhsv(243, 60%, 72%)
CMYKcmyk(56.3%, 59.6%, 0%, 28.2%)
CIE-LABlab(37.88, 33.70, -57.14)
CIE-LCHlch(37.88, 66.34, 300.53°)
OKLaboklab(47.83% 0.0304 -0.164)
OKLCHoklch(47.83% 0.167 280.5)
XYZxyz(14.3016, 10.0210, 45.9712)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AB7 #B1B74A
analogous
#4A7AB7 #504AB7 #874AB7
triadic
#504AB7 #B7504A #4AB750
tetradic
#504AB7 #B74A7A #B1B74A #4AB787
square
#504AB7 #B74A7A #B1B74A #4AB787
split-complementary
#504AB7 #B7874A #7AB74A
monochromatic
#292660 #3C388C #504AB7 #7A76C8 #A5A2DA

Accessibility & contrast

On white

6.99
#504AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#504AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AB7
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AB7#FFFFFF#000000##FFFFFF
##504AB71.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#1B6479
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504ab7;
/* rgb */ color: rgb(80, 74, 183);
/* oklch */ color: oklch(47.8% 0.167 280.5);
Tailwind
colors: {
  custom: {
    50: '#8a7dcd',
    500: '#504ab7',
    950: '#000000',
  },
}
SCSS
$custom: #504ab7;
$custom-light: #8a7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#504ab7",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 243.303,
    "s": 43.083,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47828,
    "c": 0.16675,
    "h": 280.5
  },
  "luminance": 0.10022
}

Semantic roles & 50–950 ramp

primary
#504AB7
secondary
#C4C796
accent
#D355CC
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #504AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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