#504CB8#504CB8

#504CB8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.3% C 0.165 H 279.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#504CB8
RGBrgb(80, 76, 184)
HSLhsl(242, 43%, 51%)
HSVhsv(242, 59%, 72%)
CMYKcmyk(56.5%, 58.7%, 0%, 27.8%)
CIE-LABlab(38.44, 32.79, -56.83)
CIE-LCHlch(38.44, 65.61, 299.98°)
OKLaboklab(48.26% 0.0283 -0.163)
OKLCHoklch(48.26% 0.165 279.9)
XYZxyz(14.5417, 10.3341, 46.5665)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB8 #B4B84C
analogous
#4C7EB8 #504CB8 #864CB8
triadic
#504CB8 #B8504C #4CB850
tetradic
#504CB8 #B84C7E #B4B84C #4CB886
square
#504CB8 #B84C7E #B4B84C #4CB886
split-complementary
#504CB8 #B8864C #7EB84C
monochromatic
#292763 #3C388E #504CB8 #7B78C9 #A6A4DB

Accessibility & contrast

On white

6.85
#504CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#504CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB8#FFFFFF#000000##FFFFFF
##504CB81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#19667A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb8;
/* rgb */ color: rgb(80, 76, 184);
/* oklch */ color: oklch(48.3% 0.165 279.9);
Tailwind
colors: {
  custom: {
    50: '#8a7ece',
    500: '#504cb8',
    950: '#000000',
  },
}
SCSS
$custom: #504cb8;
$custom-light: #8a7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb8",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 242.222,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48261,
    "c": 0.16547,
    "h": 279.9
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#504CB8
secondary
#C6C898
accent
#D355CE
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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