#504FCD#504FCD

#504FCD is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.5% C 0.190 H 277.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#504FCD
RGBrgb(80, 79, 205)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 61%, 80%)
CMYKcmyk(61%, 61.5%, 0%, 19.6%)
CIE-LABlab(40.74, 37.80, -65.32)
CIE-LCHlch(40.74, 75.47, 300.06°)
OKLaboklab(50.46% 0.0248 -0.188)
OKLCHoklch(50.46% 0.19 277.5)
XYZxyz(17.1201, 11.7039, 59.1027)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FCD #CCCD4F
analogous
#4F8DCD #504FCD #8F4FCD
triadic
#504FCD #CD504F #4FCD50
tetradic
#504FCD #CD4F8D #CCCD4F #4FCD8F
square
#504FCD #CD4F8D #CCCD4F #4FCD8F
split-complementary
#504FCD #CD8F4F #8DCD4F
monochromatic
#24247E #3231AE #504FCD #7F7FDB #AFAEE8

Accessibility & contrast

On white

6.29
#504FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#504FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FCD
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FCD#FFFFFF#000000##FFFFFF
##504FCD1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#006E86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504fcd;
/* rgb */ color: rgb(80, 79, 205);
/* oklch */ color: oklch(50.5% 0.190 277.5);
Tailwind
colors: {
  custom: {
    50: '#8e80dd',
    500: '#504fcd',
    950: '#000000',
  },
}
SCSS
$custom: #504fcd;
$custom-light: #8e80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#504fcd",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 205
  },
  "hsl": {
    "h": 240.476,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.18959,
    "h": 277.5
  },
  "luminance": 0.11705
}

Semantic roles & 50–950 ramp

primary
#504FCD
secondary
#D6D6A2
accent
#DF49DE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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