#504EA1#504EA1

#504EA1 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.131 H 281.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#504EA1
RGBrgb(80, 78, 161)
HSLhsl(241, 35%, 47%)
HSVhsv(241, 52%, 63%)
CMYKcmyk(50.3%, 51.6%, 0%, 36.9%)
CIE-LABlab(37.35, 24.08, -44.94)
CIE-LCHlch(37.35, 50.98, 298.18°)
OKLaboklab(46.95% 0.0254 -0.128)
OKLCHoklch(46.95% 0.131 281.2)
XYZxyz(12.4637, 9.7268, 34.9320)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EA1 #9FA14E
analogous
#4E76A1 #504EA1 #7A4EA1
triadic
#504EA1 #A1504E #4EA150
tetradic
#504EA1 #A14E76 #9FA14E #4EA17A
square
#504EA1 #A14E76 #9FA14E #4EA17A
split-complementary
#504EA1 #A17A4E #76A14E
monochromatic
#27264F #3C3A78 #504EA1 #7372BB #9C9BCF

Accessibility & contrast

On white

7.13
#504EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#504EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504EA1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EA1#FFFFFF#000000##FFFFFF
##504EA11.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA4
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#316070
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ea1;
/* rgb */ color: rgb(80, 78, 161);
/* oklch */ color: oklch(46.9% 0.131 281.2);
Tailwind
colors: {
  custom: {
    50: '#877fbd',
    500: '#504ea1',
    950: '#000000',
  },
}
SCSS
$custom: #504ea1;
$custom-light: #877fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#504ea1",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 241.446,
    "s": 34.728,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46945,
    "c": 0.13052,
    "h": 281.2
  },
  "luminance": 0.09727
}

Semantic roles & 50–950 ramp

primary
#504EA1
secondary
#BABB90
accent
#CB5DC8
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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