#504BD5#504BD5

#504BD5 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.5% C 0.205 H 277.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#504BD5
RGBrgb(80, 75, 213)
HSLhsl(242, 62%, 56%)
HSVhsv(242, 65%, 84%)
CMYKcmyk(62.4%, 64.8%, 0%, 16.5%)
CIE-LABlab(40.48, 42.80, -70.36)
CIE-LCHlch(40.48, 82.35, 301.31°)
OKLaboklab(50.47% 0.0276 -0.2028)
OKLCHoklch(50.47% 0.205 277.7)
XYZxyz(17.8307, 11.5403, 64.2258)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD5 #D0D54B
analogous
#4B8BD5 #504BD5 #954BD5
triadic
#504BD5 #D5504B #4BD550
tetradic
#504BD5 #D54B8B #D0D54B #4BD595
square
#504BD5 #D54B8B #D0D54B #4BD595
split-complementary
#504BD5 #D5954B #8BD54B
monochromatic
#231F86 #302BB8 #504BD5 #807DE1 #B0AEEC

Accessibility & contrast

On white

6.35
#504BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#504BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD5#FFFFFF#000000##FFFFFF
##504BD51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#006E89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504bd5;
/* rgb */ color: rgb(80, 75, 213);
/* oklch */ color: oklch(50.5% 0.205 277.7);
Tailwind
colors: {
  custom: {
    50: '#8f7ee3',
    500: '#504bd5',
    950: '#000000',
  },
}
SCSS
$custom: #504bd5;
$custom-light: #8f7ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd5",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 242.174,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50466,
    "c": 0.20464,
    "h": 277.7
  },
  "luminance": 0.11542
}

Semantic roles & 50–950 ramp

primary
#504BD5
secondary
#D8DAA2
accent
#E543DF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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