#504DB9#504DB9

#504DB9 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.5% C 0.166 H 279.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#504DB9
RGBrgb(80, 77, 185)
HSLhsl(242, 44%, 51%)
HSVhsv(242, 58%, 73%)
CMYKcmyk(56.8%, 58.4%, 0%, 27.5%)
CIE-LABlab(38.75, 32.49, -56.91)
CIE-LCHlch(38.75, 65.53, 299.72°)
OKLaboklab(48.52% 0.0273 -0.1632)
OKLCHoklch(48.52% 0.166 279.5)
XYZxyz(14.7163, 10.5150, 47.1437)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB9 #B6B94D
analogous
#4D80B9 #504DB9 #864DB9
triadic
#504DB9 #B9504D #4DB950
tetradic
#504DB9 #B94D80 #B6B94D #4DB986
square
#504DB9 #B94D80 #B6B94D #4DB986
split-complementary
#504DB9 #B9864D #80B94D
monochromatic
#292764 #3B3990 #504DB9 #7B79CA #A6A5DC

Accessibility & contrast

On white

6.77
#504DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#504DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DB9
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB9#FFFFFF#000000##FFFFFF
##504DB91.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#16677B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504db9;
/* rgb */ color: rgb(80, 77, 185);
/* oklch */ color: oklch(48.5% 0.166 279.5);
Tailwind
colors: {
  custom: {
    50: '#8a7fcf',
    500: '#504db9',
    950: '#000000',
  },
}
SCSS
$custom: #504db9;
$custom-light: #8a7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#504db9",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 241.667,
    "s": 43.548,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48518,
    "c": 0.16551,
    "h": 279.5
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#504DB9
secondary
#C7C999
accent
#D355D0
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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