#504EA7#504EA7

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

Color values

HEX#504EA7
RGBrgb(80, 78, 167)
HSLhsl(241, 36%, 48%)
HSVhsv(241, 53%, 65%)
CMYKcmyk(52.1%, 53.3%, 0%, 34.5%)
CIE-LABlab(37.74, 26.01, -47.89)
CIE-LCHlch(37.74, 54.50, 298.51°)
OKLaboklab(47.37% 0.0258 -0.1367)
OKLCHoklch(47.37% 0.139 280.7)
XYZxyz(13.0056, 9.9435, 37.7857)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EA7 #A5A74E
analogous
#4E78A7 #504EA7 #7C4EA7
triadic
#504EA7 #A7504E #4EA750
tetradic
#504EA7 #A74E78 #A5A74E #4EA77C
square
#504EA7 #A74E78 #A5A74E #4EA77C
split-complementary
#504EA7 #A77C4E #78A74E
monochromatic
#282754 #3C3B7D #504EA7 #7674BE #9F9ED2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504EA7#FFFFFF#000000##FFFFFF
##504EA71.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)
#1E5CAA
Deuteranopia (green-blind)
#1456A5
Tritanopia (blue-blind)
#2D6273
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504ea7;
/* rgb */ color: rgb(80, 78, 167);
/* oklch */ color: oklch(47.4% 0.139 280.7);
Tailwind
colors: {
  custom: {
    50: '#887fc2',
    500: '#504ea7',
    950: '#000000',
  },
}
SCSS
$custom: #504ea7;
$custom-light: #887fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ea7",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 241.348,
    "s": 36.327,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47366,
    "c": 0.13912,
    "h": 280.7
  },
  "luminance": 0.09944
}

Semantic roles & 50–950 ramp

primary
#504EA7
secondary
#BDBE92
accent
#CC5BCA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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