#504BD2#504BD2

#504BD2 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.2% C 0.201 H 278.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#504BD2
RGBrgb(80, 75, 210)
HSLhsl(242, 60%, 56%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.9%, 64.3%, 0%, 17.6%)
CIE-LABlab(40.23, 41.83, -69.04)
CIE-LCHlch(40.23, 80.72, 301.21°)
OKLaboklab(50.21% 0.0278 -0.1989)
OKLCHoklch(50.21% 0.201 278)
XYZxyz(17.4535, 11.3894, 62.2389)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD2 #CDD24B
analogous
#4B89D2 #504BD2 #934BD2
triadic
#504BD2 #D2504B #4BD250
tetradic
#504BD2 #D24B89 #CDD24B #4BD293
square
#504BD2 #D24B89 #CDD24B #4BD293
split-complementary
#504BD2 #D2934B #89D24B
monochromatic
#242182 #322DB3 #504BD2 #807CDE #AFADEA

Accessibility & contrast

On white

6.41
#504BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#504BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD2#FFFFFF#000000##FFFFFF
##504BD21.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#006D88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504bd2;
/* rgb */ color: rgb(80, 75, 210);
/* oklch */ color: oklch(50.2% 0.201 278.0);
Tailwind
colors: {
  custom: {
    50: '#8f7ee1',
    500: '#504bd2',
    950: '#000000',
  },
}
SCSS
$custom: #504bd2;
$custom-light: #8f7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd2",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 242.222,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5021,
    "c": 0.20084,
    "h": 278
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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