#504DCF#504DCF

#504DCF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.3% C 0.195 H 277.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#504DCF
RGBrgb(80, 77, 207)
HSLhsl(241, 58%, 56%)
HSVhsv(241, 63%, 81%)
CMYKcmyk(61.4%, 62.8%, 0%, 18.8%)
CIE-LABlab(40.44, 39.66, -66.97)
CIE-LCHlch(40.44, 77.83, 300.64°)
OKLaboklab(50.29% 0.0264 -0.1928)
OKLCHoklch(50.29% 0.195 277.8)
XYZxyz(17.2210, 11.5169, 60.3349)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DCF #CCCF4D
analogous
#4D8BCF #504DCF #914DCF
triadic
#504DCF #CF504D #4DCF50
tetradic
#504DCF #CF4D8B #CCCF4D #4DCF91
square
#504DCF #CF4D8B #CCCF4D #4DCF91
split-complementary
#504DCF #CF914D #8BCF4D
monochromatic
#24227F #322FAF #504DCF #7F7DDC #AFADE9

Accessibility & contrast

On white

6.36
#504DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#504DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DCF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DCF#FFFFFF#000000##FFFFFF
##504DCF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#006E87
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504dcf;
/* rgb */ color: rgb(80, 77, 207);
/* oklch */ color: oklch(50.3% 0.195 277.8);
Tailwind
colors: {
  custom: {
    50: '#8e7fdf',
    500: '#504dcf',
    950: '#000000',
  },
}
SCSS
$custom: #504dcf;
$custom-light: #8e7fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#504dcf",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 241.385,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50287,
    "c": 0.19462,
    "h": 277.8
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#504DCF
secondary
#D6D7A1
accent
#E147DD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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