#504FC5#504FC5

#504FC5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.8% C 0.179 H 278.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#504FC5
RGBrgb(80, 79, 197)
HSLhsl(241, 50%, 54%)
HSVhsv(241, 60%, 77%)
CMYKcmyk(59.4%, 59.9%, 0%, 22.7%)
CIE-LABlab(40.13, 35.18, -61.68)
CIE-LCHlch(40.13, 71.01, 299.70°)
OKLaboklab(49.82% 0.0251 -0.1773)
OKLCHoklch(49.82% 0.179 278.1)
XYZxyz(16.1791, 11.3275, 54.1463)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FC5 #C4C54F
analogous
#4F89C5 #504FC5 #8B4FC5
triadic
#504FC5 #C5504F #4FC550
tetradic
#504FC5 #C54F89 #C4C54F #4FC58B
square
#504FC5 #C54F89 #C4C54F #4FC58B
split-complementary
#504FC5 #C58B4F #89C54F
monochromatic
#272674 #3635A2 #504FC5 #7E7DD4 #ACABE3

Accessibility & contrast

On white

6.43
#504FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#504FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FC5
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FC5#FFFFFF#000000##FFFFFF
##504FC51.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504fc5;
/* rgb */ color: rgb(80, 79, 197);
/* oklch */ color: oklch(49.8% 0.179 278.1);
Tailwind
colors: {
  custom: {
    50: '#8c80d7',
    500: '#504fc5',
    950: '#000000',
  },
}
SCSS
$custom: #504fc5;
$custom-light: #8c80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#504fc5",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 240.508,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.17905,
    "h": 278.1
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#504FC5
secondary
#D1D19F
accent
#DA4ED9
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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