#504FCE#504FCE

#504FCE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.191 H 277.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#504FCE
RGBrgb(80, 79, 206)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 62%, 81%)
CMYKcmyk(61.2%, 61.7%, 0%, 19.2%)
CIE-LABlab(40.82, 38.13, -65.77)
CIE-LCHlch(40.82, 76.02, 300.10°)
OKLaboklab(50.54% 0.0248 -0.1893)
OKLCHoklch(50.54% 0.191 277.4)
XYZxyz(17.2412, 11.7523, 59.7404)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FCE #CDCE4F
analogous
#4F8ECE #504FCE #8F4FCE
triadic
#504FCE #CE504F #4FCE50
tetradic
#504FCE #CE4F8E #CDCE4F #4FCE8F
square
#504FCE #CE4F8E #CDCE4F #4FCE8F
split-complementary
#504FCE #CE8F4F #8ECE4F
monochromatic
#24237F #3231AF #504FCE #807FDB #AFAFE9

Accessibility & contrast

On white

6.27
#504FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#504FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FCE
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FCE#FFFFFF#000000##FFFFFF
##504FCE1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#006F87
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504fce;
/* rgb */ color: rgb(80, 79, 206);
/* oklch */ color: oklch(50.5% 0.191 277.4);
Tailwind
colors: {
  custom: {
    50: '#8e80de',
    500: '#504fce',
    950: '#000000',
  },
}
SCSS
$custom: #504fce;
$custom-light: #8e80de;
$custom-dark: #000000;
JSON
{
  "hex": "#504fce",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 206
  },
  "hsl": {
    "h": 240.472,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50542,
    "c": 0.19089,
    "h": 277.4
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

primary
#504FCE
secondary
#D6D7A2
accent
#E048DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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