#504DD1#504DD1

#504DD1 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.5% C 0.197 H 277.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#504DD1
RGBrgb(80, 77, 209)
HSLhsl(241, 59%, 56%)
HSVhsv(241, 63%, 82%)
CMYKcmyk(61.7%, 63.2%, 0%, 18%)
CIE-LABlab(40.60, 40.31, -67.86)
CIE-LCHlch(40.60, 78.93, 300.71°)
OKLaboklab(50.45% 0.0263 -0.1954)
OKLCHoklch(50.45% 0.197 277.7)
XYZxyz(17.4671, 11.6153, 61.6308)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD1 #CED14D
analogous
#4D8CD1 #504DD1 #924DD1
triadic
#504DD1 #D1504D #4DD150
tetradic
#504DD1 #D14D8C #CED14D #4DD192
square
#504DD1 #D14D8C #CED14D #4DD192
split-complementary
#504DD1 #D1924D #8CD14D
monochromatic
#242282 #312EB3 #504DD1 #807EDE #B0AEEA

Accessibility & contrast

On white

6.32
#504DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#504DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD1
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD1#FFFFFF#000000##FFFFFF
##504DD11.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#006E88
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504dd1;
/* rgb */ color: rgb(80, 77, 209);
/* oklch */ color: oklch(50.5% 0.197 277.7);
Tailwind
colors: {
  custom: {
    50: '#8f7fe0',
    500: '#504dd1',
    950: '#000000',
  },
}
SCSS
$custom: #504dd1;
$custom-light: #8f7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd1",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 209
  },
  "hsl": {
    "h": 241.364,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50454,
    "c": 0.19719,
    "h": 277.7
  },
  "luminance": 0.11617
}

Semantic roles & 50–950 ramp

primary
#504DD1
secondary
#D7D8A2
accent
#E246DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504DD1

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

Preview Lab → · Contrast checker → · Palette generator →

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