#504BD0#504BD0

#504BD0 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.0% C 0.198 H 278.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#504BD0
RGBrgb(80, 75, 208)
HSLhsl(242, 59%, 55%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.5%, 63.9%, 0%, 18.4%)
CIE-LABlab(40.07, 41.18, -68.15)
CIE-LCHlch(40.07, 79.63, 301.15°)
OKLaboklab(50.04% 0.028 -0.1963)
OKLCHoklch(50.04% 0.198 278.1)
XYZxyz(17.2059, 11.2904, 60.9348)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD0 #CBD04B
analogous
#4B88D0 #504BD0 #934BD0
triadic
#504BD0 #D0504B #4BD050
tetradic
#504BD0 #D04B88 #CBD04B #4BD093
square
#504BD0 #D04B88 #CBD04B #4BD093
split-complementary
#504BD0 #D0934B #88D04B
monochromatic
#25217F #332EB0 #504BD0 #7F7CDD #AEACE9

Accessibility & contrast

On white

6.44
#504BD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#504BD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD0
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD0#FFFFFF#000000##FFFFFF
##504BD01.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#006D87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504bd0;
/* rgb */ color: rgb(80, 75, 208);
/* oklch */ color: oklch(50.0% 0.198 278.1);
Tailwind
colors: {
  custom: {
    50: '#8f7edf',
    500: '#504bd0',
    950: '#000000',
  },
}
SCSS
$custom: #504bd0;
$custom-light: #8f7edf;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd0",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 208
  },
  "hsl": {
    "h": 242.256,
    "s": 58.59,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5004,
    "c": 0.19829,
    "h": 278.1
  },
  "luminance": 0.11292
}

Semantic roles & 50–950 ramp

primary
#504BD0
secondary
#D5D7A0
accent
#E246DC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504BD0

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

Preview Lab → · Contrast checker → · Palette generator →

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