#504EBB#504EBB

#504EBB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.9% C 0.167 H 279.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#504EBB
RGBrgb(80, 78, 187)
HSLhsl(241, 44%, 52%)
HSVhsv(241, 58%, 73%)
CMYKcmyk(57.2%, 58.3%, 0%, 26.7%)
CIE-LABlab(39.14, 32.52, -57.45)
CIE-LCHlch(39.14, 66.01, 299.52°)
OKLaboklab(48.85% 0.0263 -0.1648)
OKLCHoklch(48.85% 0.167 279.1)
XYZxyz(14.9995, 10.7411, 48.2869)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EBB #B9BB4E
analogous
#4E83BB #504EBB #874EBB
triadic
#504EBB #BB504E #4EBB50
tetradic
#504EBB #BB4E83 #B9BB4E #4EBB87
square
#504EBB #BB4E83 #B9BB4E #4EBB87
split-complementary
#504EBB #BB874E #83BB4E
monochromatic
#292867 #3A3993 #504EBB #7C7ACC #A7A6DD

Accessibility & contrast

On white

6.67
#504EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#504EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EBB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EBB#FFFFFF#000000##FFFFFF
##504EBB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#12687D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504ebb;
/* rgb */ color: rgb(80, 78, 187);
/* oklch */ color: oklch(48.9% 0.167 279.1);
Tailwind
colors: {
  custom: {
    50: '#8b7fd0',
    500: '#504ebb',
    950: '#000000',
  },
}
SCSS
$custom: #504ebb;
$custom-light: #8b7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#504ebb",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 241.101,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48853,
    "c": 0.16691,
    "h": 279.1
  },
  "luminance": 0.10742
}

Semantic roles & 50–950 ramp

primary
#504EBB
secondary
#C9CA9B
accent
#D454D2
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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