#504BC1#504BC1

#504BC1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.8% C 0.179 H 279.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#504BC1
RGBrgb(80, 75, 193)
HSLhsl(243, 49%, 53%)
HSVhsv(243, 61%, 76%)
CMYKcmyk(58.5%, 61.1%, 0%, 24.3%)
CIE-LABlab(38.88, 36.33, -61.39)
CIE-LCHlch(38.88, 71.33, 300.61°)
OKLaboklab(48.8% 0.029 -0.1764)
OKLCHoklch(48.8% 0.179 279.3)
XYZxyz(15.4469, 10.5868, 51.6712)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC1 #BCC14B
analogous
#4B81C1 #504BC1 #8B4BC1
triadic
#504BC1 #C1504B #4BC150
tetradic
#504BC1 #C14B81 #BCC14B #4BC18B
square
#504BC1 #C14B81 #BCC14B #4BC18B
split-complementary
#504BC1 #C18B4B #81C14B
monochromatic
#28256C #39359A #504BC1 #7C79D1 #A9A6E0

Accessibility & contrast

On white

6.74
#504BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#504BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC1#FFFFFF#000000##FFFFFF
##504BC11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504bc1;
/* rgb */ color: rgb(80, 75, 193);
/* oklch */ color: oklch(48.8% 0.179 279.3);
Tailwind
colors: {
  custom: {
    50: '#8c7dd5',
    500: '#504bc1',
    950: '#000000',
  },
}
SCSS
$custom: #504bc1;
$custom-light: #8c7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc1",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 193
  },
  "hsl": {
    "h": 242.542,
    "s": 48.76,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48799,
    "c": 0.17881,
    "h": 279.3
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#504BC1
secondary
#CBCE9A
accent
#D84FD3
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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