#504BC7#504BC7

#504BC7 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.3% C 0.187 H 278.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#504BC7
RGBrgb(80, 75, 199)
HSLhsl(242, 53%, 54%)
HSVhsv(242, 62%, 78%)
CMYKcmyk(59.8%, 62.3%, 0%, 22%)
CIE-LABlab(39.34, 38.27, -64.12)
CIE-LCHlch(39.34, 74.67, 300.83°)
OKLaboklab(49.29% 0.0287 -0.1845)
OKLCHoklch(49.29% 0.187 278.8)
XYZxyz(16.1299, 10.8600, 55.2680)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC7 #C2C74B
analogous
#4B84C7 #504BC7 #8E4BC7
triadic
#504BC7 #C7504B #4BC750
tetradic
#504BC7 #C74B84 #C2C74B #4BC78E
square
#504BC7 #C74B84 #C2C74B #4BC78E
split-complementary
#504BC7 #C78E4B #84C74B
monochromatic
#272474 #3732A2 #504BC7 #7D7AD6 #ABA8E4

Accessibility & contrast

On white

6.62
#504BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#504BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC7#FFFFFF#000000##FFFFFF
##504BC71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#006A82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504bc7;
/* rgb */ color: rgb(80, 75, 199);
/* oklch */ color: oklch(49.3% 0.187 278.8);
Tailwind
colors: {
  custom: {
    50: '#8d7ed9',
    500: '#504bc7',
    950: '#000000',
  },
}
SCSS
$custom: #504bc7;
$custom-light: #8d7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc7",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 242.419,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49288,
    "c": 0.18668,
    "h": 278.8
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#504BC7
secondary
#CFD19C
accent
#DC4CD6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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