#504FCF#504FCF

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

Color values

HEX#504FCF
RGBrgb(80, 79, 207)
HSLhsl(240, 57%, 56%)
HSVhsv(240, 62%, 81%)
CMYKcmyk(61.4%, 61.8%, 0%, 18.8%)
CIE-LABlab(40.90, 38.45, -66.22)
CIE-LCHlch(40.90, 76.57, 300.15°)
OKLaboklab(50.62% 0.0247 -0.1906)
OKLCHoklch(50.62% 0.192 277.4)
XYZxyz(17.3631, 11.8011, 60.3822)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FCF #CECF4F
analogous
#4F8ECF #504FCF #904FCF
triadic
#504FCF #CF504F #4FCF50
tetradic
#504FCF #CF4F8E #CECF4F #4FCF90
square
#504FCF #CF4F8E #CECF4F #4FCF90
split-complementary
#504FCF #CF904F #8ECF4F
monochromatic
#242381 #3130B1 #504FCF #807FDC #B0AFE9

Accessibility & contrast

On white

6.25
#504FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#504FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FCF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FCF#FFFFFF#000000##FFFFFF
##504FCF1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504fcf;
/* rgb */ color: rgb(80, 79, 207);
/* oklch */ color: oklch(50.6% 0.192 277.4);
Tailwind
colors: {
  custom: {
    50: '#8e80df',
    500: '#504fcf',
    950: '#000000',
  },
}
SCSS
$custom: #504fcf;
$custom-light: #8e80df;
$custom-dark: #000000;
JSON
{
  "hex": "#504fcf",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 240.469,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.19219,
    "h": 277.4
  },
  "luminance": 0.11802
}

Semantic roles & 50–950 ramp

primary
#504FCF
secondary
#D7D7A2
accent
#E047DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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