#504EA3#504EA3

#504EA3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.133 H 281.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#504EA3
RGBrgb(80, 78, 163)
HSLhsl(241, 35%, 47%)
HSVhsv(241, 52%, 64%)
CMYKcmyk(50.9%, 52.1%, 0%, 36.1%)
CIE-LABlab(37.48, 24.72, -45.93)
CIE-LCHlch(37.48, 52.16, 298.29°)
OKLaboklab(47.08% 0.0255 -0.1309)
OKLCHoklch(47.08% 0.133 281)
XYZxyz(12.6415, 9.7979, 35.8683)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EA3 #A1A34E
analogous
#4E76A3 #504EA3 #7B4EA3
triadic
#504EA3 #A3504E #4EA350
tetradic
#504EA3 #A34E76 #A1A34E #4EA37B
square
#504EA3 #A34E76 #A1A34E #4EA37B
split-complementary
#504EA3 #A37B4E #76A34E
monochromatic
#272650 #3C3A7A #504EA3 #7472BC #9D9CD0

Accessibility & contrast

On white

7.10
#504EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#504EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504EA3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EA3#FFFFFF#000000##FFFFFF
##504EA31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#306171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ea3;
/* rgb */ color: rgb(80, 78, 163);
/* oklch */ color: oklch(47.1% 0.133 281.0);
Tailwind
colors: {
  custom: {
    50: '#877fbf',
    500: '#504ea3',
    950: '#000000',
  },
}
SCSS
$custom: #504ea3;
$custom-light: #877fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#504ea3",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 163
  },
  "hsl": {
    "h": 241.412,
    "s": 35.27,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47084,
    "c": 0.1334,
    "h": 281
  },
  "luminance": 0.09799
}

Semantic roles & 50–950 ramp

primary
#504EA3
secondary
#BBBC91
accent
#CB5CC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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