#504BA5#504BA5

#504BA5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.141 H 282.0°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#504BA5
RGBrgb(80, 75, 165)
HSLhsl(243, 38%, 47%)
HSVhsv(243, 55%, 65%)
CMYKcmyk(51.5%, 54.5%, 0%, 35.3%)
CIE-LABlab(36.84, 27.27, -48.14)
CIE-LCHlch(36.84, 55.33, 299.53°)
OKLaboklab(46.65% 0.0292 -0.1375)
OKLCHoklch(46.65% 0.141 282)
XYZxyz(12.6138, 9.4535, 36.7501)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BA5 #A0A54B
analogous
#4B73A5 #504BA5 #7D4BA5
triadic
#504BA5 #A5504B #4BA550
tetradic
#504BA5 #A54B73 #A0A54B #4BA57D
square
#504BA5 #A54B73 #A0A54B #4BA57D
split-complementary
#504BA5 #A57D4B #73A54B
monochromatic
#272551 #3C387B #504BA5 #746FBE #9D9AD1

Accessibility & contrast

On white

7.26
#504BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#504BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504BA5
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BA5#FFFFFF#000000##FFFFFF
##504BA51.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA8
Deuteranopia (green-blind)
#0E54A3
Tritanopia (blue-blind)
#2F5F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504ba5;
/* rgb */ color: rgb(80, 75, 165);
/* oklch */ color: oklch(46.7% 0.141 282.0);
Tailwind
colors: {
  custom: {
    50: '#887dc0',
    500: '#504ba5',
    950: '#000000',
  },
}
SCSS
$custom: #504ba5;
$custom-light: #887dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ba5",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 243.333,
    "s": 37.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46652,
    "c": 0.14054,
    "h": 282
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#504BA5
secondary
#BBBD8F
accent
#CD5AC7
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #504BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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