#504DFA#504DFA

#504DFA is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 54.1% C 0.248 H 275.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#504DFA
RGBrgb(80, 77, 250)
HSLhsl(241, 95%, 64%)
HSVhsv(241, 69%, 98%)
CMYKcmyk(68%, 69.2%, 0%, 2%)
CIE-LABlab(44.11, 53.44, -85.36)
CIE-LCHlch(44.11, 100.71, 302.05°)
OKLaboklab(54.07% 0.0216 -0.2467)
OKLCHoklch(54.07% 0.248 275)
XYZxyz(23.2118, 13.9132, 91.8862)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DFA #F7FA4D
analogous
#4DA1FA #504DFA #A64DFA
triadic
#504DFA #FA504D #4DFA50
tetradic
#504DFA #FA4DA1 #F7FA4D #4DFAA6
square
#504DFA #FA4DA1 #F7FA4D #4DFAA6
split-complementary
#504DFA #FAA64D #A1FA4D
monochromatic
#0906C7 #1511F8 #504DFA #8B89FC #C5C4FD

Accessibility & contrast

On white

5.55
#504DFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#504DFA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DFA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DFA#FFFFFF#000000##FFFFFF
##504DFA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0060F7
Tritanopia (blue-blind)
#007D9E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #504dfa;
/* rgb */ color: rgb(80, 77, 250);
/* oklch */ color: oklch(54.1% 0.248 275.0);
Tailwind
colors: {
  custom: {
    50: '#9680fd',
    500: '#504dfa',
    950: '#000000',
  },
}
SCSS
$custom: #504dfa;
$custom-light: #9680fd;
$custom-dark: #000000;
JSON
{
  "hex": "#504dfa",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 250
  },
  "hsl": {
    "h": 241.04,
    "s": 94.536,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5407,
    "c": 0.24765,
    "h": 275
  },
  "luminance": 0.13915
}

Semantic roles & 50–950 ramp

primary
#504DFA
secondary
#EFF0B3
accent
#E600E2
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A18
muted
#7F7C86

Preview Lab

Preview with #504DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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