#504B97#504B97

#504B97 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.120 H 283.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#504B97
RGBrgb(80, 75, 151)
HSLhsl(244, 34%, 44%)
HSVhsv(244, 50%, 59%)
CMYKcmyk(47%, 50.3%, 0%, 40.8%)
CIE-LABlab(35.93, 22.81, -41.19)
CIE-LCHlch(35.93, 47.08, 298.98°)
OKLaboklab(45.67% 0.0281 -0.117)
OKLCHoklch(45.67% 0.12 283.5)
XYZxyz(11.4086, 8.9715, 30.4027)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504B97 #92974B
analogous
#4B6C97 #504B97 #764B97
triadic
#504B97 #97504B #4B9750
tetradic
#504B97 #974B6C #92974B #4B9776
square
#504B97 #974B6C #92974B #4B9776
split-complementary
#504B97 #97764B #6C974B
monochromatic
#252245 #3A376E #504B97 #6F6AB5 #9793C9

Accessibility & contrast

On white

7.52
#504B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#504B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504B97
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504B97#FFFFFF#000000##FFFFFF
##504B971.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#385B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #504b97;
/* rgb */ color: rgb(80, 75, 151);
/* oklch */ color: oklch(45.7% 0.120 283.5);
Tailwind
colors: {
  custom: {
    50: '#867db6',
    500: '#504b97',
    950: '#000000',
  },
}
SCSS
$custom: #504b97;
$custom-light: #867db6;
$custom-dark: #000000;
JSON
{
  "hex": "#504b97",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 243.947,
    "s": 33.628,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.12038,
    "h": 283.5
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#504B97
secondary
#B3B688
accent
#CA5EC3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #504B97

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

Preview Lab → · Contrast checker → · Palette generator →

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