#504EAA#504EAA

#504EAA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.143 H 280.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#504EAA
RGBrgb(80, 78, 170)
HSLhsl(241, 37%, 49%)
HSVhsv(241, 54%, 67%)
CMYKcmyk(52.9%, 54.1%, 0%, 33.3%)
CIE-LABlab(37.94, 26.98, -49.35)
CIE-LCHlch(37.94, 56.25, 298.67°)
OKLaboklab(47.58% 0.026 -0.141)
OKLCHoklch(47.58% 0.143 280.4)
XYZxyz(13.2861, 10.0557, 39.2633)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EAA #A8AA4E
analogous
#4E7AAA #504EAA #7E4EAA
triadic
#504EAA #AA504E #4EAA50
tetradic
#504EAA #AA4E7A #A8AA4E #4EAA7E
square
#504EAA #AA4E7A #A8AA4E #4EAA7E
split-complementary
#504EAA #AA7E4E #7AAA4E
monochromatic
#292856 #3C3B80 #504EAA #7775C0 #A09FD3

Accessibility & contrast

On white

6.97
#504EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#504EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EAA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EAA#FFFFFF#000000##FFFFFF
##504EAA1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAD
Deuteranopia (green-blind)
#0B56A8
Tritanopia (blue-blind)
#2A6374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504eaa;
/* rgb */ color: rgb(80, 78, 170);
/* oklch */ color: oklch(47.6% 0.143 280.4);
Tailwind
colors: {
  custom: {
    50: '#887fc4',
    500: '#504eaa',
    950: '#000000',
  },
}
SCSS
$custom: #504eaa;
$custom-light: #887fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#504eaa",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 241.304,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47581,
    "c": 0.14338,
    "h": 280.4
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#504EAA
secondary
#BFC094
accent
#CD5BCB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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