#504FD2#504FD2

#504FD2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.9% C 0.196 H 277.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#504FD2
RGBrgb(80, 79, 210)
HSLhsl(240, 59%, 57%)
HSVhsv(240, 62%, 82%)
CMYKcmyk(61.9%, 62.4%, 0%, 17.6%)
CIE-LABlab(41.14, 39.43, -67.56)
CIE-LCHlch(41.14, 78.22, 300.27°)
OKLaboklab(50.87% 0.0245 -0.1945)
OKLCHoklch(50.87% 0.196 277.2)
XYZxyz(17.7333, 11.9492, 62.3322)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD2 #D1D24F
analogous
#4F90D2 #504FD2 #924FD2
triadic
#504FD2 #D2504F #4FD250
tetradic
#504FD2 #D24F90 #D1D24F #4FD292
square
#504FD2 #D24F90 #D1D24F #4FD292
split-complementary
#504FD2 #D2924F #90D24F
monochromatic
#232285 #2F2EB5 #504FD2 #8080DE #B1B0EB

Accessibility & contrast

On white

6.19
#504FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#504FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD2#FFFFFF#000000##FFFFFF
##504FD21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#007089
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504fd2;
/* rgb */ color: rgb(80, 79, 210);
/* oklch */ color: oklch(50.9% 0.196 277.2);
Tailwind
colors: {
  custom: {
    50: '#8f81e1',
    500: '#504fd2',
    950: '#000000',
  },
}
SCSS
$custom: #504fd2;
$custom-light: #8f81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd2",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 240.458,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50872,
    "c": 0.19608,
    "h": 277.2
  },
  "luminance": 0.11951
}

Semantic roles & 50–950 ramp

primary
#504FD2
secondary
#D9D9A4
accent
#E245E1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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