#504FC7#504FC7

#504FC7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.0% C 0.182 H 277.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#504FC7
RGBrgb(80, 79, 199)
HSLhsl(241, 52%, 55%)
HSVhsv(241, 60%, 78%)
CMYKcmyk(59.8%, 60.3%, 0%, 22%)
CIE-LABlab(40.28, 35.83, -62.60)
CIE-LCHlch(40.28, 72.13, 299.79°)
OKLaboklab(49.98% 0.0251 -0.18)
OKLCHoklch(49.98% 0.182 277.9)
XYZxyz(16.4097, 11.4197, 55.3613)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FC7 #C6C74F
analogous
#4F8AC7 #504FC7 #8C4FC7
triadic
#504FC7 #C7504F #4FC750
tetradic
#504FC7 #C74F8A #C6C74F #4FC78C
square
#504FC7 #C74F8A #C6C74F #4FC78C
split-complementary
#504FC7 #C78C4F #8AC74F
monochromatic
#262676 #3534A4 #504FC7 #7E7DD6 #ACACE5

Accessibility & contrast

On white

6.39
#504FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#504FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FC7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FC7#FFFFFF#000000##FFFFFF
##504FC71.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504fc7;
/* rgb */ color: rgb(80, 79, 199);
/* oklch */ color: oklch(50.0% 0.182 277.9);
Tailwind
colors: {
  custom: {
    50: '#8d80d9',
    500: '#504fc7',
    950: '#000000',
  },
}
SCSS
$custom: #504fc7;
$custom-light: #8d80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#504fc7",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 240.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.18171,
    "h": 277.9
  },
  "luminance": 0.11421
}

Semantic roles & 50–950 ramp

primary
#504FC7
secondary
#D2D2A0
accent
#DB4DDA
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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