#504FC2#504FC2

#504FC2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.6% C 0.175 H 278.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#504FC2
RGBrgb(80, 79, 194)
HSLhsl(241, 49%, 54%)
HSVhsv(241, 59%, 76%)
CMYKcmyk(58.8%, 59.3%, 0%, 23.9%)
CIE-LABlab(39.90, 34.19, -60.30)
CIE-LCHlch(39.90, 69.32, 299.55°)
OKLaboklab(49.58% 0.0252 -0.1732)
OKLCHoklch(49.58% 0.175 278.3)
XYZxyz(15.8387, 11.1913, 52.3540)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FC2 #C1C24F
analogous
#4F87C2 #504FC2 #894FC2
triadic
#504FC2 #C2504F #4FC250
tetradic
#504FC2 #C24F87 #C1C24F #4FC289
square
#504FC2 #C24F87 #C1C24F #4FC289
split-complementary
#504FC2 #C2894F #87C24F
monochromatic
#272770 #37379D #504FC2 #7D7CD2 #AAAAE2

Accessibility & contrast

On white

6.48
#504FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#504FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FC2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FC2#FFFFFF#000000##FFFFFF
##504FC21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504fc2;
/* rgb */ color: rgb(80, 79, 194);
/* oklch */ color: oklch(49.6% 0.175 278.3);
Tailwind
colors: {
  custom: {
    50: '#8c80d5',
    500: '#504fc2',
    950: '#000000',
  },
}
SCSS
$custom: #504fc2;
$custom-light: #8c80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#504fc2",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 240.522,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49578,
    "c": 0.17504,
    "h": 278.3
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#504FC2
secondary
#CFCF9E
accent
#D850D7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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