#504FCA#504FCA

#504FCA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.186 H 277.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#504FCA
RGBrgb(80, 79, 202)
HSLhsl(240, 54%, 55%)
HSVhsv(240, 61%, 79%)
CMYKcmyk(60.4%, 60.9%, 0%, 20.8%)
CIE-LABlab(40.51, 36.82, -63.96)
CIE-LCHlch(40.51, 73.80, 299.93°)
OKLaboklab(50.22% 0.025 -0.184)
OKLCHoklch(50.22% 0.186 277.7)
XYZxyz(16.7615, 11.5604, 57.2138)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FCA #C9CA4F
analogous
#4F8BCA #504FCA #8E4FCA
triadic
#504FCA #CA504F #4FCA50
tetradic
#504FCA #CA4F8B #C9CA4F #4FCA8E
square
#504FCA #CA4F8B #C9CA4F #4FCA8E
split-complementary
#504FCA #CA8E4F #8BCA4F
monochromatic
#25257A #3433A9 #504FCA #7F7ED8 #AEADE6

Accessibility & contrast

On white

6.34
#504FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504FCA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FCA#FFFFFF#000000##FFFFFF
##504FCA1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#006D85
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504fca;
/* rgb */ color: rgb(80, 79, 202);
/* oklch */ color: oklch(50.2% 0.186 277.7);
Tailwind
colors: {
  custom: {
    50: '#8d80db',
    500: '#504fca',
    950: '#000000',
  },
}
SCSS
$custom: #504fca;
$custom-light: #8d80db;
$custom-dark: #000000;
JSON
{
  "hex": "#504fca",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 240.488,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50216,
    "c": 0.18566,
    "h": 277.7
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#504FCA
secondary
#D4D4A1
accent
#DD4BDC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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