#504CEA#504CEA

#504CEA is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.5% C 0.230 H 276.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#504CEA
RGBrgb(80, 76, 234)
HSLhsl(242, 79%, 61%)
HSVhsv(242, 68%, 92%)
CMYKcmyk(65.8%, 67.5%, 0%, 8.2%)
CIE-LABlab(42.48, 48.94, -79.04)
CIE-LCHlch(42.48, 92.97, 301.77°)
OKLaboklab(52.47% 0.0245 -0.2282)
OKLCHoklch(52.47% 0.23 276.1)
XYZxyz(20.7391, 12.8131, 79.2062)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CEA #E6EA4C
analogous
#4C97EA #504CEA #9F4CEA
triadic
#504CEA #EA504C #4CEA50
tetradic
#504CEA #EA4C97 #E6EA4C #4CEA9F
square
#504CEA #EA4C97 #E6EA4C #4CEA9F
split-complementary
#504CEA #EA9F4C #97EA4C
monochromatic
#1714A8 #1F1ADF #504CEA #8683F0 #BBBAF7

Accessibility & contrast

On white

5.89
#504CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#504CEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CEA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CEA#FFFFFF#000000##FFFFFF
##504CEA1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#007695
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504cea;
/* rgb */ color: rgb(80, 76, 234);
/* oklch */ color: oklch(52.5% 0.230 276.1);
Tailwind
colors: {
  custom: {
    50: '#937ff2',
    500: '#504cea',
    950: '#000000',
  },
}
SCSS
$custom: #504cea;
$custom-light: #937ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#504cea",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 234
  },
  "hsl": {
    "h": 241.519,
    "s": 79,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52467,
    "c": 0.22953,
    "h": 276.1
  },
  "luminance": 0.12815
}

Semantic roles & 50–950 ramp

primary
#504CEA
secondary
#E5E7AB
accent
#DB0AD6
background
#F9F7FF
surface
#F2EEFE
border
#CCC9D6
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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