#504BC2#504BC2

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

Color values

HEX#504BC2
RGBrgb(80, 75, 194)
HSLhsl(243, 49%, 53%)
HSVhsv(243, 61%, 76%)
CMYKcmyk(58.8%, 61.3%, 0%, 23.9%)
CIE-LABlab(38.95, 36.65, -61.85)
CIE-LCHlch(38.95, 71.89, 300.65°)
OKLaboklab(48.88% 0.029 -0.1778)
OKLCHoklch(48.88% 0.18 279.3)
XYZxyz(15.5589, 10.6316, 52.2607)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC2 #BDC24B
analogous
#4B81C2 #504BC2 #8B4BC2
triadic
#504BC2 #C2504B #4BC250
tetradic
#504BC2 #C24B81 #BDC24B #4BC28B
square
#504BC2 #C24B81 #BDC24B #4BC28B
split-complementary
#504BC2 #C28B4B #81C24B
monochromatic
#28256D #39359B #504BC2 #7C79D1 #A9A6E1

Accessibility & contrast

On white

6.72
#504BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#504BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC2#FFFFFF#000000##FFFFFF
##504BC21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504bc2;
/* rgb */ color: rgb(80, 75, 194);
/* oklch */ color: oklch(48.9% 0.180 279.3);
Tailwind
colors: {
  custom: {
    50: '#8c7ed5',
    500: '#504bc2',
    950: '#000000',
  },
}
SCSS
$custom: #504bc2;
$custom-light: #8c7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc2",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 242.521,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.18013,
    "h": 279.3
  },
  "luminance": 0.10633
}

Semantic roles & 50–950 ramp

primary
#504BC2
secondary
#CCCE9B
accent
#D94FD3
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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