#504CB9#504CB9

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

Color values

HEX#504CB9
RGBrgb(80, 76, 185)
HSLhsl(242, 44%, 51%)
HSVhsv(242, 59%, 73%)
CMYKcmyk(56.8%, 58.9%, 0%, 27.5%)
CIE-LABlab(38.51, 33.11, -57.30)
CIE-LCHlch(38.51, 66.18, 300.02°)
OKLaboklab(48.34% 0.0283 -0.1644)
OKLCHoklch(48.34% 0.167 279.8)
XYZxyz(14.6469, 10.3762, 47.1205)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB9 #B5B94C
analogous
#4C7EB9 #504CB9 #864CB9
triadic
#504CB9 #B9504C #4CB950
tetradic
#504CB9 #B94C7E #B5B94C #4CB986
square
#504CB9 #B94C7E #B5B94C #4CB986
split-complementary
#504CB9 #B9864C #7EB94C
monochromatic
#292764 #3B3890 #504CB9 #7B78CA #A6A4DB

Accessibility & contrast

On white

6.83
#504CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504CB9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB9#FFFFFF#000000##FFFFFF
##504CB91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504cb9;
/* rgb */ color: rgb(80, 76, 185);
/* oklch */ color: oklch(48.3% 0.167 279.8);
Tailwind
colors: {
  custom: {
    50: '#8b7ecf',
    500: '#504cb9',
    950: '#000000',
  },
}
SCSS
$custom: #504cb9;
$custom-light: #8b7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb9",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 242.202,
    "s": 43.775,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48339,
    "c": 0.16683,
    "h": 279.8
  },
  "luminance": 0.10377
}

Semantic roles & 50–950 ramp

primary
#504CB9
secondary
#C7C898
accent
#D454CF
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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