#504CCB#504CCB

#504CCB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.8% C 0.191 H 278.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#504CCB
RGBrgb(80, 76, 203)
HSLhsl(242, 55%, 55%)
HSVhsv(242, 63%, 80%)
CMYKcmyk(60.6%, 62.6%, 0%, 20.4%)
CIE-LABlab(39.89, 38.97, -65.55)
CIE-LCHlch(39.89, 76.25, 300.73°)
OKLaboklab(49.79% 0.0276 -0.1887)
OKLCHoklch(49.79% 0.191 278.3)
XYZxyz(16.6687, 11.1849, 57.7688)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CCB #C7CB4C
analogous
#4C87CB #504CCB #904CCB
triadic
#504CCB #CB504C #4CCB50
tetradic
#504CCB #CB4C87 #C7CB4C #4CCB90
square
#504CCB #CB4C87 #C7CB4C #4CCB90
split-complementary
#504CCB #CB904C #87CB4C
monochromatic
#262379 #3531A9 #504CCB #7E7BD9 #ADABE7

Accessibility & contrast

On white

6.49
#504CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#504CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CCB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CCB#FFFFFF#000000##FFFFFF
##504CCB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504ccb;
/* rgb */ color: rgb(80, 76, 203);
/* oklch */ color: oklch(49.8% 0.191 278.3);
Tailwind
colors: {
  custom: {
    50: '#8e7edc',
    500: '#504ccb',
    950: '#000000',
  },
}
SCSS
$custom: #504ccb;
$custom-light: #8e7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#504ccb",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 203
  },
  "hsl": {
    "h": 241.89,
    "s": 54.978,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49787,
    "c": 0.19065,
    "h": 278.3
  },
  "luminance": 0.11186
}

Semantic roles & 50–950 ramp

primary
#504CCB
secondary
#D2D49F
accent
#DE49DA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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