#504CB7#504CB7

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

Color values

HEX#504CB7
RGBrgb(80, 76, 183)
HSLhsl(242, 43%, 51%)
HSVhsv(242, 58%, 72%)
CMYKcmyk(56.3%, 58.5%, 0%, 28.2%)
CIE-LABlab(38.36, 32.46, -56.36)
CIE-LCHlch(38.36, 65.04, 299.94°)
OKLaboklab(48.18% 0.0284 -0.1616)
OKLCHoklch(48.18% 0.164 279.9)
XYZxyz(14.4373, 10.2923, 46.0164)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB7 #B3B74C
analogous
#4C7DB7 #504CB7 #854CB7
triadic
#504CB7 #B7504C #4CB750
tetradic
#504CB7 #B74C7D #B3B74C #4CB785
square
#504CB7 #B74C7D #B3B74C #4CB785
split-complementary
#504CB7 #B7854C #7DB74C
monochromatic
#292761 #3C398D #504CB7 #7B78C9 #A5A3DA

Accessibility & contrast

On white

6.87
#504CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#504CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB7#FFFFFF#000000##FFFFFF
##504CB71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#1A657A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb7;
/* rgb */ color: rgb(80, 76, 183);
/* oklch */ color: oklch(48.2% 0.164 279.9);
Tailwind
colors: {
  custom: {
    50: '#8a7ecd',
    500: '#504cb7',
    950: '#000000',
  },
}
SCSS
$custom: #504cb7;
$custom-light: #8a7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb7",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 242.243,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.16412,
    "h": 279.9
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#504CB7
secondary
#C5C798
accent
#D255CE
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #504CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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