#504BB8#504BB8

#504BB8 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.1% C 0.167 H 280.1°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#504BB8
RGBrgb(80, 75, 184)
HSLhsl(243, 43%, 51%)
HSVhsv(243, 59%, 72%)
CMYKcmyk(56.5%, 59.2%, 0%, 27.8%)
CIE-LABlab(38.19, 33.41, -57.22)
CIE-LCHlch(38.19, 66.26, 300.28°)
OKLaboklab(48.08% 0.0294 -0.1642)
OKLCHoklch(48.08% 0.167 280.1)
XYZxyz(14.4734, 10.1974, 46.5437)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BB8 #B3B84B
analogous
#4B7CB8 #504BB8 #864BB8
triadic
#504BB8 #B8504B #4BB850
tetradic
#504BB8 #B84B7C #B3B84B #4BB886
square
#504BB8 #B84B7C #B3B84B #4BB886
split-complementary
#504BB8 #B8864B #7CB84B
monochromatic
#292762 #3C388E #504BB8 #7B77C9 #A5A3DB

Accessibility & contrast

On white

6.91
#504BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#504BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BB8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BB8#FFFFFF#000000##FFFFFF
##504BB81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#19657A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504bb8;
/* rgb */ color: rgb(80, 75, 184);
/* oklch */ color: oklch(48.1% 0.167 280.1);
Tailwind
colors: {
  custom: {
    50: '#8a7dce',
    500: '#504bb8',
    950: '#000000',
  },
}
SCSS
$custom: #504bb8;
$custom-light: #8a7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#504bb8",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 242.752,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48083,
    "c": 0.16679,
    "h": 280.1
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#504BB8
secondary
#C5C897
accent
#D355CD
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #504BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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