#504DD6#504DD6

#504DD6 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 50.9% C 0.204 H 277.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#504DD6
RGBrgb(80, 77, 214)
HSLhsl(241, 63%, 57%)
HSVhsv(241, 64%, 84%)
CMYKcmyk(62.6%, 64%, 0%, 16.1%)
CIE-LABlab(41.00, 41.94, -70.07)
CIE-LCHlch(41.00, 81.66, 300.90°)
OKLaboklab(50.88% 0.0259 -0.2019)
OKLCHoklch(50.88% 0.204 277.3)
XYZxyz(18.0958, 11.8668, 64.9422)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD6 #D3D64D
analogous
#4D8FD6 #504DD6 #954DD6
triadic
#504DD6 #D6504D #4DD650
tetradic
#504DD6 #D64D8F #D3D64D #4DD695
square
#504DD6 #D64D8F #D3D64D #4DD695
split-complementary
#504DD6 #D6954D #8FD64D
monochromatic
#222089 #2E2BBB #504DD6 #817FE1 #B2B0ED

Accessibility & contrast

On white

6.22
#504DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#504DD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD6#FFFFFF#000000##FFFFFF
##504DD61.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#005BD3
Tritanopia (blue-blind)
#00708A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504dd6;
/* rgb */ color: rgb(80, 77, 214);
/* oklch */ color: oklch(50.9% 0.204 277.3);
Tailwind
colors: {
  custom: {
    50: '#8f7fe4',
    500: '#504dd6',
    950: '#000000',
  },
}
SCSS
$custom: #504dd6;
$custom-light: #8f7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd6",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 214
  },
  "hsl": {
    "h": 241.314,
    "s": 62.557,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.20357,
    "h": 277.3
  },
  "luminance": 0.11868
}

Semantic roles & 50–950 ramp

primary
#504DD6
secondary
#DADBA4
accent
#E642E2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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