#504BC5#504BC5

#504BC5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.1% C 0.184 H 279.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#504BC5
RGBrgb(80, 75, 197)
HSLhsl(242, 51%, 53%)
HSVhsv(242, 62%, 77%)
CMYKcmyk(59.4%, 61.9%, 0%, 22.7%)
CIE-LABlab(39.19, 37.62, -63.21)
CIE-LCHlch(39.19, 73.56, 300.76°)
OKLaboklab(49.12% 0.0288 -0.1818)
OKLCHoklch(49.12% 0.184 279)
XYZxyz(15.8992, 10.7677, 54.0530)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC5 #C0C54B
analogous
#4B83C5 #504BC5 #8D4BC5
triadic
#504BC5 #C5504B #4BC550
tetradic
#504BC5 #C54B83 #C0C54B #4BC58D
square
#504BC5 #C54B83 #C0C54B #4BC58D
split-complementary
#504BC5 #C58D4B #83C54B
monochromatic
#282471 #38339F #504BC5 #7D79D4 #AAA8E3

Accessibility & contrast

On white

6.66
#504BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#504BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC5#FFFFFF#000000##FFFFFF
##504BC51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0057C3
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504bc5;
/* rgb */ color: rgb(80, 75, 197);
/* oklch */ color: oklch(49.1% 0.184 279.0);
Tailwind
colors: {
  custom: {
    50: '#8d7ed7',
    500: '#504bc5',
    950: '#000000',
  },
}
SCSS
$custom: #504bc5;
$custom-light: #8d7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc5",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 242.459,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49124,
    "c": 0.18407,
    "h": 279
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#504BC5
secondary
#CED09C
accent
#DB4DD5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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