#504BD3#504BD3

#504BD3 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.3% C 0.202 H 277.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#504BD3
RGBrgb(80, 75, 211)
HSLhsl(242, 61%, 56%)
HSVhsv(242, 64%, 83%)
CMYKcmyk(62.1%, 64.5%, 0%, 17.3%)
CIE-LABlab(40.31, 42.15, -69.48)
CIE-LCHlch(40.31, 81.27, 301.25°)
OKLaboklab(50.3% 0.0278 -0.2002)
OKLCHoklch(50.3% 0.202 277.9)
XYZxyz(17.5784, 11.4394, 62.8971)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD3 #CED34B
analogous
#4B8AD3 #504BD3 #944BD3
triadic
#504BD3 #D3504B #4BD350
tetradic
#504BD3 #D34B8A #CED34B #4BD394
square
#504BD3 #D34B8A #CED34B #4BD394
split-complementary
#504BD3 #D3944B #8AD34B
monochromatic
#242083 #312CB5 #504BD3 #807CDF #B0ADEB

Accessibility & contrast

On white

6.39
#504BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#504BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD3#FFFFFF#000000##FFFFFF
##504BD31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0059D0
Tritanopia (blue-blind)
#006E88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504bd3;
/* rgb */ color: rgb(80, 75, 211);
/* oklch */ color: oklch(50.3% 0.202 277.9);
Tailwind
colors: {
  custom: {
    50: '#8f7ee2',
    500: '#504bd3',
    950: '#000000',
  },
}
SCSS
$custom: #504bd3;
$custom-light: #8f7ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd3",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 211
  },
  "hsl": {
    "h": 242.206,
    "s": 60.714,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50295,
    "c": 0.20211,
    "h": 277.9
  },
  "luminance": 0.11441
}

Semantic roles & 50–950 ramp

primary
#504BD3
secondary
#D7D9A1
accent
#E444DE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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