#504FC8#504FC8

#504FC8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.1% C 0.183 H 277.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#504FC8
RGBrgb(80, 79, 200)
HSLhsl(240, 52%, 55%)
HSVhsv(240, 61%, 78%)
CMYKcmyk(60%, 60.5%, 0%, 21.6%)
CIE-LABlab(40.35, 36.16, -63.05)
CIE-LCHlch(40.35, 72.69, 299.83°)
OKLaboklab(50.06% 0.025 -0.1813)
OKLCHoklch(50.06% 0.183 277.9)
XYZxyz(16.5262, 11.4663, 55.9747)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FC8 #C7C84F
analogous
#4F8BC8 #504FC8 #8D4FC8
triadic
#504FC8 #C8504F #4FC850
tetradic
#504FC8 #C84F8B #C7C84F #4FC88D
square
#504FC8 #C84F8B #C7C84F #4FC88D
split-complementary
#504FC8 #C88D4F #8BC84F
monochromatic
#262577 #3534A6 #504FC8 #7E7ED7 #ADACE5

Accessibility & contrast

On white

6.38
#504FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504FC8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FC8#FFFFFF#000000##FFFFFF
##504FC81.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#006D84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504fc8;
/* rgb */ color: rgb(80, 79, 200);
/* oklch */ color: oklch(50.1% 0.183 277.9);
Tailwind
colors: {
  custom: {
    50: '#8d80da',
    500: '#504fc8',
    950: '#000000',
  },
}
SCSS
$custom: #504fc8;
$custom-light: #8d80da;
$custom-dark: #000000;
JSON
{
  "hex": "#504fc8",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 240.496,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50055,
    "c": 0.18303,
    "h": 277.9
  },
  "luminance": 0.11468
}

Semantic roles & 50–950 ramp

primary
#504FC8
secondary
#D2D3A0
accent
#DC4CDB
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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