#504FD5#504FD5

#504FD5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.1% C 0.200 H 277.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#504FD5
RGBrgb(80, 79, 213)
HSLhsl(240, 61%, 57%)
HSVhsv(240, 63%, 84%)
CMYKcmyk(62.4%, 62.9%, 0%, 16.5%)
CIE-LABlab(41.37, 40.41, -68.89)
CIE-LCHlch(41.37, 79.87, 300.40°)
OKLaboklab(51.12% 0.0243 -0.1984)
OKLCHoklch(51.12% 0.2 277)
XYZxyz(18.1106, 12.1001, 64.3191)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD5 #D4D54F
analogous
#4F91D5 #504FD5 #934FD5
triadic
#504FD5 #D5504F #4FD550
tetradic
#504FD5 #D54F91 #D4D54F #4FD593
square
#504FD5 #D54F91 #D4D54F #4FD593
split-complementary
#504FD5 #D5934F #91D54F
monochromatic
#212189 #2E2CBA #504FD5 #8180E1 #B2B2ED

Accessibility & contrast

On white

6.14
#504FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#504FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD5
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD5#FFFFFF#000000##FFFFFF
##504FD51.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#00718B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504fd5;
/* rgb */ color: rgb(80, 79, 213);
/* oklch */ color: oklch(51.1% 0.200 277.0);
Tailwind
colors: {
  custom: {
    50: '#8f81e3',
    500: '#504fd5',
    950: '#000000',
  },
}
SCSS
$custom: #504fd5;
$custom-light: #8f81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd5",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 240.448,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.19993,
    "h": 277
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#504FD5
secondary
#DBDBA5
accent
#E543E3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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