#504CD5#504CD5

#504CD5 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.6% C 0.203 H 277.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#504CD5
RGBrgb(80, 76, 213)
HSLhsl(242, 62%, 57%)
HSVhsv(242, 64%, 84%)
CMYKcmyk(62.4%, 64.3%, 0%, 16.5%)
CIE-LABlab(40.70, 42.21, -70.00)
CIE-LCHlch(40.70, 81.74, 301.09°)
OKLaboklab(50.63% 0.0268 -0.2017)
OKLCHoklch(50.63% 0.203 277.6)
XYZxyz(17.8991, 11.6770, 64.2485)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD5 #D1D54C
analogous
#4C8DD5 #504CD5 #954CD5
triadic
#504CD5 #D5504C #4CD550
tetradic
#504CD5 #D54C8D #D1D54C #4CD595
square
#504CD5 #D54C8D #D1D54C #4CD595
split-complementary
#504CD5 #D5954C #8DD54C
monochromatic
#232087 #2F2BB9 #504CD5 #807EE1 #B1AFEC

Accessibility & contrast

On white

6.30
#504CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504CD5
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD5#FFFFFF#000000##FFFFFF
##504CD51.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#006F8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504cd5;
/* rgb */ color: rgb(80, 76, 213);
/* oklch */ color: oklch(50.6% 0.203 277.6);
Tailwind
colors: {
  custom: {
    50: '#8f7fe3',
    500: '#504cd5',
    950: '#000000',
  },
}
SCSS
$custom: #504cd5;
$custom-light: #8f7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd5",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 241.752,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.20348,
    "h": 277.6
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#504CD5
secondary
#D9DAA2
accent
#E543E0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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