#504DB6#504DB6

#504DB6 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.161 H 279.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#504DB6
RGBrgb(80, 77, 182)
HSLhsl(242, 42%, 51%)
HSVhsv(242, 58%, 71%)
CMYKcmyk(56%, 57.7%, 0%, 28.6%)
CIE-LABlab(38.53, 31.51, -55.50)
CIE-LCHlch(38.53, 63.82, 299.59°)
OKLaboklab(48.29% 0.0273 -0.1591)
OKLCHoklch(48.29% 0.161 279.7)
XYZxyz(14.4030, 10.3897, 45.4933)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DB6 #B3B64D
analogous
#4D7EB6 #504DB6 #844DB6
triadic
#504DB6 #B6504D #4DB650
tetradic
#504DB6 #B64D7E #B3B64D #4DB684
square
#504DB6 #B64D7E #B3B64D #4DB684
split-complementary
#504DB6 #B6844D #7EB64D
monochromatic
#292861 #3C3A8C #504DB6 #7B78C8 #A5A4DA

Accessibility & contrast

On white

6.82
#504DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#504DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DB6
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DB6#FFFFFF#000000##FFFFFF
##504DB61.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#1C667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504db6;
/* rgb */ color: rgb(80, 77, 182);
/* oklch */ color: oklch(48.3% 0.161 279.7);
Tailwind
colors: {
  custom: {
    50: '#8a7fcd',
    500: '#504db6',
    950: '#000000',
  },
}
SCSS
$custom: #504db6;
$custom-light: #8a7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#504db6",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 241.714,
    "s": 41.833,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.16143,
    "h": 279.7
  },
  "luminance": 0.10391
}

Semantic roles & 50–950 ramp

primary
#504DB6
secondary
#C5C798
accent
#D256CE
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #504DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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