#504DB5#504DB5

#504DB5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.160 H 279.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#504DB5
RGBrgb(80, 77, 181)
HSLhsl(242, 41%, 51%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(55.8%, 57.5%, 0%, 29%)
CIE-LABlab(38.46, 31.19, -55.02)
CIE-LCHlch(38.46, 63.25, 299.54°)
OKLaboklab(48.21% 0.0273 -0.1577)
OKLCHoklch(48.21% 0.16 279.8)
XYZxyz(14.3000, 10.3485, 44.9510)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB5 #B2B54D
analogous
#4D7EB5 #504DB5 #844DB5
triadic
#504DB5 #B5504D #4DB550
tetradic
#504DB5 #B54D7E #B2B54D #4DB584
square
#504DB5 #B54D7E #B2B54D #4DB584
split-complementary
#504DB5 #B5844D #7EB54D
monochromatic
#292860 #3C3A8B #504DB5 #7A78C7 #A5A3D9

Accessibility & contrast

On white

6.84
#504DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#504DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DB5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB5#FFFFFF#000000##FFFFFF
##504DB51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#1D6579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504db5;
/* rgb */ color: rgb(80, 77, 181);
/* oklch */ color: oklch(48.2% 0.160 279.8);
Tailwind
colors: {
  custom: {
    50: '#8a7fcc',
    500: '#504db5',
    950: '#000000',
  },
}
SCSS
$custom: #504db5;
$custom-light: #8a7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#504db5",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 241.731,
    "s": 41.27,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48211,
    "c": 0.16006,
    "h": 279.8
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#504DB5
secondary
#C5C698
accent
#D157CE
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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