#504CB6#504CB6

#504CB6 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.163 H 280.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#504CB6
RGBrgb(80, 76, 182)
HSLhsl(242, 42%, 51%)
HSVhsv(242, 58%, 71%)
CMYKcmyk(56%, 58.2%, 0%, 28.6%)
CIE-LABlab(38.29, 32.14, -55.89)
CIE-LCHlch(38.29, 64.47, 299.90°)
OKLaboklab(48.11% 0.0284 -0.1603)
OKLCHoklch(48.11% 0.163 280)
XYZxyz(14.3336, 10.2508, 45.4702)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB6 #B2B64C
analogous
#4C7DB6 #504CB6 #854CB6
triadic
#504CB6 #B6504C #4CB650
tetradic
#504CB6 #B64C7D #B2B64C #4CB685
square
#504CB6 #B64C7D #B2B64C #4CB685
split-complementary
#504CB6 #B6854C #7DB64C
monochromatic
#292760 #3C398C #504CB6 #7A77C8 #A5A3D9

Accessibility & contrast

On white

6.88
#504CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#504CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB6
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB6#FFFFFF#000000##FFFFFF
##504CB61.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#1C6579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb6;
/* rgb */ color: rgb(80, 76, 182);
/* oklch */ color: oklch(48.1% 0.163 280.0);
Tailwind
colors: {
  custom: {
    50: '#8a7ecd',
    500: '#504cb6',
    950: '#000000',
  },
}
SCSS
$custom: #504cb6;
$custom-light: #8a7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb6",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 242.264,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48107,
    "c": 0.16276,
    "h": 280
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#504CB6
secondary
#C5C697
accent
#D256CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #504CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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