#504CCA#504CCA

#504CCA is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.7% C 0.189 H 278.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#504CCA
RGBrgb(80, 76, 202)
HSLhsl(242, 54%, 55%)
HSVhsv(242, 62%, 79%)
CMYKcmyk(60.4%, 62.4%, 0%, 20.8%)
CIE-LABlab(39.81, 38.64, -65.10)
CIE-LCHlch(39.81, 75.70, 300.69°)
OKLaboklab(49.7% 0.0276 -0.1873)
OKLCHoklch(49.7% 0.189 278.4)
XYZxyz(16.5500, 11.1374, 57.1433)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CCA #C6CA4C
analogous
#4C87CA #504CCA #8F4CCA
triadic
#504CCA #CA504C #4CCA50
tetradic
#504CCA #CA4C87 #C6CA4C #4CCA8F
square
#504CCA #CA4C87 #C6CA4C #4CCA8F
split-complementary
#504CCA #CA8F4C #87CA4C
monochromatic
#262478 #3532A7 #504CCA #7E7BD8 #ACAAE6

Accessibility & contrast

On white

6.51
#504CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#504CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CCA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CCA#FFFFFF#000000##FFFFFF
##504CCA1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504cca;
/* rgb */ color: rgb(80, 76, 202);
/* oklch */ color: oklch(49.7% 0.189 278.4);
Tailwind
colors: {
  custom: {
    50: '#8d7edb',
    500: '#504cca',
    950: '#000000',
  },
}
SCSS
$custom: #504cca;
$custom-light: #8d7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#504cca",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 202
  },
  "hsl": {
    "h": 241.905,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49704,
    "c": 0.18935,
    "h": 278.4
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#504CCA
secondary
#D2D49E
accent
#DE4AD9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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