#504B99#504B99

#504B99 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.123 H 283.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#504B99
RGBrgb(80, 75, 153)
HSLhsl(244, 34%, 45%)
HSVhsv(244, 51%, 60%)
CMYKcmyk(47.7%, 51%, 0%, 40%)
CIE-LABlab(36.06, 23.44, -42.20)
CIE-LCHlch(36.06, 48.27, 299.05°)
OKLaboklab(45.81% 0.0283 -0.12)
OKLCHoklch(45.81% 0.123 283.3)
XYZxyz(11.5724, 9.0370, 31.2654)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504B99 #94994B
analogous
#4B6D99 #504B99 #774B99
triadic
#504B99 #99504B #4B9950
tetradic
#504B99 #994B6D #94994B #4B9977
square
#504B99 #994B6D #94994B #4B9977
split-complementary
#504B99 #99774B #6D994B
monochromatic
#252347 #3B3770 #504B99 #706BB6 #9794CB

Accessibility & contrast

On white

7.48
#504B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#504B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504B99
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504B99#FFFFFF#000000##FFFFFF
##504B991.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579C
Deuteranopia (green-blind)
#245297
Tritanopia (blue-blind)
#375C6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #504b99;
/* rgb */ color: rgb(80, 75, 153);
/* oklch */ color: oklch(45.8% 0.123 283.3);
Tailwind
colors: {
  custom: {
    50: '#867db7',
    500: '#504b99',
    950: '#000000',
  },
}
SCSS
$custom: #504b99;
$custom-light: #867db7;
$custom-dark: #000000;
JSON
{
  "hex": "#504b99",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 153
  },
  "hsl": {
    "h": 243.846,
    "s": 34.211,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4581,
    "c": 0.1233,
    "h": 283.3
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504B99

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

Preview Lab → · Contrast checker → · Palette generator →

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