#504FC9#504FC9

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

Color values

HEX#504FC9
RGBrgb(80, 79, 201)
HSLhsl(240, 53%, 55%)
HSVhsv(240, 61%, 79%)
CMYKcmyk(60.2%, 60.7%, 0%, 21.2%)
CIE-LABlab(40.43, 36.49, -63.51)
CIE-LCHlch(40.43, 73.24, 299.88°)
OKLaboklab(50.14% 0.025 -0.1826)
OKLCHoklch(50.14% 0.184 277.8)
XYZxyz(16.6435, 11.5132, 56.5922)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FC9 #C8C94F
analogous
#4F8BC9 #504FC9 #8D4FC9
triadic
#504FC9 #C9504F #4FC950
tetradic
#504FC9 #C94F8B #C8C94F #4FC98D
square
#504FC9 #C94F8B #C8C94F #4FC98D
split-complementary
#504FC9 #C98D4F #8BC94F
monochromatic
#262579 #3433A7 #504FC9 #7F7ED7 #ADADE6

Accessibility & contrast

On white

6.36
#504FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#504FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FC9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FC9#FFFFFF#000000##FFFFFF
##504FC91.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504fc9;
/* rgb */ color: rgb(80, 79, 201);
/* oklch */ color: oklch(50.1% 0.184 277.8);
Tailwind
colors: {
  custom: {
    50: '#8d80da',
    500: '#504fc9',
    950: '#000000',
  },
}
SCSS
$custom: #504fc9;
$custom-light: #8d80da;
$custom-dark: #000000;
JSON
{
  "hex": "#504fc9",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 201
  },
  "hsl": {
    "h": 240.492,
    "s": 53.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50136,
    "c": 0.18434,
    "h": 277.8
  },
  "luminance": 0.11514
}

Semantic roles & 50–950 ramp

primary
#504FC9
secondary
#D3D4A0
accent
#DC4BDB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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