#504BC4#504BC4

#504BC4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.0% C 0.183 H 279.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#504BC4
RGBrgb(80, 75, 196)
HSLhsl(242, 51%, 53%)
HSVhsv(242, 62%, 77%)
CMYKcmyk(59.2%, 61.7%, 0%, 23.1%)
CIE-LABlab(39.11, 37.30, -62.76)
CIE-LCHlch(39.11, 73.01, 300.72°)
OKLaboklab(49.04% 0.0289 -0.1805)
OKLCHoklch(49.04% 0.183 279.1)
XYZxyz(15.7850, 10.7220, 53.4516)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC4 #BFC44B
analogous
#4B82C4 #504BC4 #8C4BC4
triadic
#504BC4 #C4504B #4BC450
tetradic
#504BC4 #C44B82 #BFC44B #4BC48C
square
#504BC4 #C44B82 #BFC44B #4BC48C
split-complementary
#504BC4 #C48C4B #82C44B
monochromatic
#282570 #38349E #504BC4 #7D79D3 #AAA7E2

Accessibility & contrast

On white

6.68
#504BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#504BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC4#FFFFFF#000000##FFFFFF
##504BC41.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006980
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504bc4;
/* rgb */ color: rgb(80, 75, 196);
/* oklch */ color: oklch(49.0% 0.183 279.1);
Tailwind
colors: {
  custom: {
    50: '#8c7ed7',
    500: '#504bc4',
    950: '#000000',
  },
}
SCSS
$custom: #504bc4;
$custom-light: #8c7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc4",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 196
  },
  "hsl": {
    "h": 242.479,
    "s": 50.628,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49043,
    "c": 0.18275,
    "h": 279.1
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#504BC4
secondary
#CDCF9B
accent
#DA4ED4
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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