#504AB5#504AB5

#504AB5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.7% C 0.164 H 280.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#504AB5
RGBrgb(80, 74, 181)
HSLhsl(243, 42%, 50%)
HSVhsv(243, 59%, 71%)
CMYKcmyk(55.8%, 59.1%, 0%, 29%)
CIE-LABlab(37.73, 33.05, -56.21)
CIE-LCHlch(37.73, 65.20, 300.46°)
OKLaboklab(47.67% 0.0304 -0.1612)
OKLCHoklch(47.67% 0.164 280.7)
XYZxyz(14.0949, 9.9383, 44.8827)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AB5 #AFB54A
analogous
#4A7AB5 #504AB5 #854AB5
triadic
#504AB5 #B5504A #4AB550
tetradic
#504AB5 #B54A7A #AFB54A #4AB585
square
#504AB5 #B54A7A #AFB54A #4AB585
split-complementary
#504AB5 #B5854A #7AB54A
monochromatic
#2A265E #3D388A #504AB5 #7A75C7 #A4A1D9

Accessibility & contrast

On white

7.03
#504AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#504AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AB5
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AB5#FFFFFF#000000##FFFFFF
##504AB51.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#1E6378
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504ab5;
/* rgb */ color: rgb(80, 74, 181);
/* oklch */ color: oklch(47.7% 0.164 280.7);
Tailwind
colors: {
  custom: {
    50: '#8a7dcc',
    500: '#504ab5',
    950: '#000000',
  },
}
SCSS
$custom: #504ab5;
$custom-light: #8a7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#504ab5",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 243.364,
    "s": 41.961,
    "l": 50
  },
  "oklch": {
    "l": 0.47672,
    "c": 0.16405,
    "h": 280.7
  },
  "luminance": 0.09939
}

Semantic roles & 50–950 ramp

primary
#504AB5
secondary
#C3C595
accent
#D256CB
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #504AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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