#504EB8#504EB8

#504EB8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.6% C 0.163 H 279.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#504EB8
RGBrgb(80, 78, 184)
HSLhsl(241, 43%, 51%)
HSVhsv(241, 58%, 72%)
CMYKcmyk(56.5%, 57.6%, 0%, 27.8%)
CIE-LABlab(38.92, 31.54, -56.04)
CIE-LCHlch(38.92, 64.31, 299.37°)
OKLaboklab(48.62% 0.0263 -0.1607)
OKLCHoklch(48.62% 0.163 279.3)
XYZxyz(14.6817, 10.6140, 46.6132)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EB8 #B6B84E
analogous
#4E81B8 #504EB8 #854EB8
triadic
#504EB8 #B8504E #4EB850
tetradic
#504EB8 #B84E81 #B6B84E #4EB885
square
#504EB8 #B84E81 #B6B84E #4EB885
split-complementary
#504EB8 #B8854E #81B84E
monochromatic
#292864 #3B398F #504EB8 #7B7ACA #A6A5DB

Accessibility & contrast

On white

6.72
#504EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#504EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EB8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EB8#FFFFFF#000000##FFFFFF
##504EB81.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#18677B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504eb8;
/* rgb */ color: rgb(80, 78, 184);
/* oklch */ color: oklch(48.6% 0.163 279.3);
Tailwind
colors: {
  custom: {
    50: '#8a7fce',
    500: '#504eb8',
    950: '#000000',
  },
}
SCSS
$custom: #504eb8;
$custom-light: #8a7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#504eb8",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 241.132,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48622,
    "c": 0.16283,
    "h": 279.3
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

primary
#504EB8
secondary
#C7C89A
accent
#D355D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #504EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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