#504BB5#504BB5

#504BB5 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.9% C 0.163 H 280.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#504BB5
RGBrgb(80, 75, 181)
HSLhsl(243, 42%, 50%)
HSVhsv(243, 59%, 71%)
CMYKcmyk(55.8%, 58.6%, 0%, 29%)
CIE-LABlab(37.97, 32.43, -55.81)
CIE-LCHlch(37.97, 64.55, 300.16°)
OKLaboklab(47.85% 0.0294 -0.16)
OKLCHoklch(47.85% 0.163 280.4)
XYZxyz(14.1622, 10.0729, 44.9051)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BB5 #B0B54B
analogous
#4B7BB5 #504BB5 #854BB5
triadic
#504BB5 #B5504B #4BB550
tetradic
#504BB5 #B54B7B #B0B54B #4BB585
square
#504BB5 #B54B7B #B0B54B #4BB585
split-complementary
#504BB5 #B5854B #7BB54B
monochromatic
#2A275F #3D398A #504BB5 #7A76C7 #A4A2D9

Accessibility & contrast

On white

6.97
#504BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#504BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BB5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BB5#FFFFFF#000000##FFFFFF
##504BB51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#1E6478
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504bb5;
/* rgb */ color: rgb(80, 75, 181);
/* oklch */ color: oklch(47.9% 0.163 280.4);
Tailwind
colors: {
  custom: {
    50: '#8a7dcc',
    500: '#504bb5',
    950: '#000000',
  },
}
SCSS
$custom: #504bb5;
$custom-light: #8a7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#504bb5",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 242.83,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.16273,
    "h": 280.4
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#504BB5
secondary
#C3C696
accent
#D256CC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #504BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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