#504BB9#504BB9

#504BB9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.2% C 0.168 H 280.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#504BB9
RGBrgb(80, 75, 185)
HSLhsl(243, 44%, 51%)
HSVhsv(243, 59%, 73%)
CMYKcmyk(56.8%, 59.5%, 0%, 27.5%)
CIE-LABlab(38.27, 33.73, -57.69)
CIE-LCHlch(38.27, 66.83, 300.31°)
OKLaboklab(48.16% 0.0293 -0.1656)
OKLCHoklch(48.16% 0.168 280)
XYZxyz(14.5786, 10.2394, 47.0977)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BB9 #B4B94B
analogous
#4B7DB9 #504BB9 #874BB9
triadic
#504BB9 #B9504B #4BB950
tetradic
#504BB9 #B94B7D #B4B94B #4BB987
square
#504BB9 #B94B7D #B4B94B #4BB987
split-complementary
#504BB9 #B9874B #7DB94B
monochromatic
#292763 #3C388F #504BB9 #7B77CA #A6A3DB

Accessibility & contrast

On white

6.89
#504BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504BB9
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BB9#FFFFFF#000000##FFFFFF
##504BB91.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#17657B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504bb9;
/* rgb */ color: rgb(80, 75, 185);
/* oklch */ color: oklch(48.2% 0.168 280.0);
Tailwind
colors: {
  custom: {
    50: '#8b7dcf',
    500: '#504bb9',
    950: '#000000',
  },
}
SCSS
$custom: #504bb9;
$custom-light: #8b7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#504bb9",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 242.727,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48162,
    "c": 0.16814,
    "h": 280
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#504BB9
secondary
#C6C898
accent
#D454CE
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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