#504DD3#504DD3

#504DD3 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.200 H 277.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#504DD3
RGBrgb(80, 77, 211)
HSLhsl(241, 60%, 56%)
HSVhsv(241, 64%, 83%)
CMYKcmyk(62.1%, 63.5%, 0%, 17.3%)
CIE-LABlab(40.76, 40.96, -68.75)
CIE-LCHlch(40.76, 80.02, 300.79°)
OKLaboklab(50.62% 0.0261 -0.198)
OKLCHoklch(50.62% 0.2 277.5)
XYZxyz(17.7162, 11.7150, 62.9430)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD3 #D0D34D
analogous
#4D8DD3 #504DD3 #934DD3
triadic
#504DD3 #D3504D #4DD350
tetradic
#504DD3 #D34D8D #D0D34D #4DD393
square
#504DD3 #D34D8D #D0D34D #4DD393
split-complementary
#504DD3 #D3934D #8DD34D
monochromatic
#232185 #302DB6 #504DD3 #807EDF #B0AFEB

Accessibility & contrast

On white

6.28
#504DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504DD3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD3#FFFFFF#000000##FFFFFF
##504DD31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#006F89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504dd3;
/* rgb */ color: rgb(80, 77, 211);
/* oklch */ color: oklch(50.6% 0.200 277.5);
Tailwind
colors: {
  custom: {
    50: '#8f7fe2',
    500: '#504dd3',
    950: '#000000',
  },
}
SCSS
$custom: #504dd3;
$custom-light: #8f7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd3",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 211
  },
  "hsl": {
    "h": 241.343,
    "s": 60.36,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50622,
    "c": 0.19975,
    "h": 277.5
  },
  "luminance": 0.11716
}

Semantic roles & 50–950 ramp

primary
#504DD3
secondary
#D8D9A2
accent
#E444E0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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