#504CCD#504CCD

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

Color values

HEX#504CCD
RGBrgb(80, 76, 205)
HSLhsl(242, 56%, 55%)
HSVhsv(242, 63%, 80%)
CMYKcmyk(61%, 62.9%, 0%, 19.6%)
CIE-LABlab(40.05, 39.61, -66.45)
CIE-LCHlch(40.05, 77.36, 300.80°)
OKLaboklab(49.95% 0.0274 -0.1913)
OKLCHoklch(49.95% 0.193 278.2)
XYZxyz(16.9086, 11.2808, 59.0322)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CCD #C9CD4C
analogous
#4C89CD #504CCD #904CCD
triadic
#504CCD #CD504C #4CCD50
tetradic
#504CCD #CD4C89 #C9CD4C #4CCD90
square
#504CCD #CD4C89 #C9CD4C #4CCD90
split-complementary
#504CCD #CD904C #89CD4C
monochromatic
#25237C #3430AC #504CCD #7F7CDA #AEACE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504CCD#FFFFFF#000000##FFFFFF
##504CCD1.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)
#0064D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#006C85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504ccd;
/* rgb */ color: rgb(80, 76, 205);
/* oklch */ color: oklch(50.0% 0.193 278.2);
Tailwind
colors: {
  custom: {
    50: '#8e7edd',
    500: '#504ccd',
    950: '#000000',
  },
}
SCSS
$custom: #504ccd;
$custom-light: #8e7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#504ccd",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 205
  },
  "hsl": {
    "h": 241.86,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49953,
    "c": 0.19324,
    "h": 278.2
  },
  "luminance": 0.11282
}

Semantic roles & 50–950 ramp

primary
#504CCD
secondary
#D4D59F
accent
#E048DB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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