#504EDB#504EDB

#504EDB is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.5% C 0.209 H 276.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#504EDB
RGBrgb(80, 78, 219)
HSLhsl(241, 66%, 58%)
HSVhsv(241, 64%, 86%)
CMYKcmyk(63.5%, 64.4%, 0%, 14.1%)
CIE-LABlab(41.64, 42.96, -71.90)
CIE-LCHlch(41.64, 83.75, 300.86°)
OKLaboklab(51.47% 0.0246 -0.2073)
OKLCHoklch(51.47% 0.209 276.8)
XYZxyz(18.8147, 12.2672, 68.3804)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EDB #D9DB4E
analogous
#4E92DB #504EDB #964EDB
triadic
#504EDB #DB504E #4EDB50
tetradic
#504EDB #DB4E92 #D9DB4E #4EDB96
square
#504EDB #DB4E92 #D9DB4E #4EDB96
split-complementary
#504EDB #DB964E #92DB4E
monochromatic
#1F1E91 #2A28C4 #504EDB #8281E5 #B5B4F0

Accessibility & contrast

On white

6.08
#504EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#504EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EDB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EDB#FFFFFF#000000##FFFFFF
##504EDB1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DF
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#00728D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #504edb;
/* rgb */ color: rgb(80, 78, 219);
/* oklch */ color: oklch(51.5% 0.209 276.8);
Tailwind
colors: {
  custom: {
    50: '#9080e7',
    500: '#504edb',
    950: '#000000',
  },
}
SCSS
$custom: #504edb;
$custom-light: #9080e7;
$custom-dark: #000000;
JSON
{
  "hex": "#504edb",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 219
  },
  "hsl": {
    "h": 240.851,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51465,
    "c": 0.20874,
    "h": 276.8
  },
  "luminance": 0.12269
}

Semantic roles & 50–950 ramp

primary
#504EDB
secondary
#DEDEA6
accent
#E93FE7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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