#504DD4#504DD4

#504DD4 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 50.7% C 0.201 H 277.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#504DD4
RGBrgb(80, 77, 212)
HSLhsl(241, 61%, 57%)
HSVhsv(241, 64%, 83%)
CMYKcmyk(62.3%, 63.7%, 0%, 16.9%)
CIE-LABlab(40.84, 41.29, -69.19)
CIE-LCHlch(40.84, 80.57, 300.83°)
OKLaboklab(50.71% 0.026 -0.1993)
OKLCHoklch(50.71% 0.201 277.4)
XYZxyz(17.8420, 11.7653, 63.6053)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD4 #D1D44D
analogous
#4D8ED4 #504DD4 #944DD4
triadic
#504DD4 #D4504D #4DD450
tetradic
#504DD4 #D44D8E #D1D44D #4DD494
square
#504DD4 #D44D8E #D1D44D #4DD494
split-complementary
#504DD4 #D4944D #8ED44D
monochromatic
#232086 #2F2CB7 #504DD4 #807EE0 #B1B0EC

Accessibility & contrast

On white

6.26
#504DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#504DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD4#FFFFFF#000000##FFFFFF
##504DD41.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504dd4;
/* rgb */ color: rgb(80, 77, 212);
/* oklch */ color: oklch(50.7% 0.201 277.4);
Tailwind
colors: {
  custom: {
    50: '#8f7fe2',
    500: '#504dd4',
    950: '#000000',
  },
}
SCSS
$custom: #504dd4;
$custom-light: #8f7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd4",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 212
  },
  "hsl": {
    "h": 241.333,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50706,
    "c": 0.20103,
    "h": 277.4
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#504DD4
secondary
#D9DAA3
accent
#E444E1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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