#504DCA#504DCA

#504DCA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.9% C 0.188 H 278.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#504DCA
RGBrgb(80, 77, 202)
HSLhsl(241, 54%, 55%)
HSVhsv(241, 62%, 79%)
CMYKcmyk(60.4%, 61.9%, 0%, 20.8%)
CIE-LABlab(40.04, 38.04, -64.72)
CIE-LCHlch(40.04, 75.07, 300.44°)
OKLaboklab(49.87% 0.0267 -0.1862)
OKLCHoklch(49.87% 0.188 278.2)
XYZxyz(16.6194, 11.2762, 57.1664)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DCA #C7CA4D
analogous
#4D89CA #504DCA #8F4DCA
triadic
#504DCA #CA504D #4DCA50
tetradic
#504DCA #CA4D89 #C7CA4D #4DCA8F
square
#504DCA #CA4D89 #C7CA4D #4DCA8F
split-complementary
#504DCA #CA8F4D #89CA4D
monochromatic
#262479 #3532A8 #504DCA #7E7CD8 #ADABE6

Accessibility & contrast

On white

6.45
#504DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#504DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DCA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DCA#FFFFFF#000000##FFFFFF
##504DCA1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504dca;
/* rgb */ color: rgb(80, 77, 202);
/* oklch */ color: oklch(49.9% 0.188 278.2);
Tailwind
colors: {
  custom: {
    50: '#8d7fdb',
    500: '#504dca',
    950: '#000000',
  },
}
SCSS
$custom: #504dca;
$custom-light: #8d7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#504dca",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 241.44,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49874,
    "c": 0.18813,
    "h": 278.2
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#504DCA
secondary
#D2D49F
accent
#DD4ADA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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