#504FD4#504FD4

#504FD4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.199 H 277.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#504FD4
RGBrgb(80, 79, 212)
HSLhsl(240, 61%, 57%)
HSVhsv(240, 63%, 83%)
CMYKcmyk(62.3%, 62.7%, 0%, 16.9%)
CIE-LABlab(41.29, 40.09, -68.45)
CIE-LCHlch(41.29, 79.32, 300.36°)
OKLaboklab(51.04% 0.0244 -0.1971)
OKLCHoklch(51.04% 0.199 277.1)
XYZxyz(17.9841, 12.0495, 63.6527)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FD4 #D3D44F
analogous
#4F91D4 #504FD4 #934FD4
triadic
#504FD4 #D4504F #4FD450
tetradic
#504FD4 #D44F91 #D3D44F #4FD493
square
#504FD4 #D44F91 #D3D44F #4FD493
split-complementary
#504FD4 #D4934F #91D44F
monochromatic
#222187 #2E2DB9 #504FD4 #8180E0 #B2B1EC

Accessibility & contrast

On white

6.16
#504FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#504FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FD4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FD4#FFFFFF#000000##FFFFFF
##504FD41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#005CD1
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504fd4;
/* rgb */ color: rgb(80, 79, 212);
/* oklch */ color: oklch(51.0% 0.199 277.1);
Tailwind
colors: {
  custom: {
    50: '#8f81e2',
    500: '#504fd4',
    950: '#000000',
  },
}
SCSS
$custom: #504fd4;
$custom-light: #8f81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#504fd4",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 240.451,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51038,
    "c": 0.19865,
    "h": 277.1
  },
  "luminance": 0.12051
}

Semantic roles & 50–950 ramp

primary
#504FD4
secondary
#DADAA4
accent
#E444E3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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