#504BD1#504BD1

#504BD1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.1% C 0.200 H 278.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#504BD1
RGBrgb(80, 75, 209)
HSLhsl(242, 59%, 56%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.7%, 64.1%, 0%, 18%)
CIE-LABlab(40.15, 41.51, -68.59)
CIE-LCHlch(40.15, 80.18, 301.18°)
OKLaboklab(50.13% 0.0279 -0.1976)
OKLCHoklch(50.13% 0.2 278)
XYZxyz(17.3293, 11.3397, 61.5848)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD1 #CCD14B
analogous
#4B89D1 #504BD1 #934BD1
triadic
#504BD1 #D1504B #4BD150
tetradic
#504BD1 #D14B89 #CCD14B #4BD193
square
#504BD1 #D14B89 #CCD14B #4BD193
split-complementary
#504BD1 #D1934B #89D14B
monochromatic
#242181 #322DB1 #504BD1 #7F7CDD #AFACEA

Accessibility & contrast

On white

6.43
#504BD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#504BD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD1
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD1#FFFFFF#000000##FFFFFF
##504BD11.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0059CE
Tritanopia (blue-blind)
#006D87
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504bd1;
/* rgb */ color: rgb(80, 75, 209);
/* oklch */ color: oklch(50.1% 0.200 278.0);
Tailwind
colors: {
  custom: {
    50: '#8f7ee0',
    500: '#504bd1',
    950: '#000000',
  },
}
SCSS
$custom: #504bd1;
$custom-light: #8f7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd1",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 209
  },
  "hsl": {
    "h": 242.239,
    "s": 59.292,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50125,
    "c": 0.19956,
    "h": 278
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#504BD1
secondary
#D6D8A0
accent
#E245DD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504BD1

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

Preview Lab → · Contrast checker → · Palette generator →

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