#504AE8#504AE8

#504AE8 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.0% C 0.229 H 276.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#504AE8
RGBrgb(80, 74, 232)
HSLhsl(242, 77%, 60%)
HSVhsv(242, 68%, 91%)
CMYKcmyk(65.5%, 68.1%, 0%, 9%)
CIE-LABlab(41.89, 49.45, -78.88)
CIE-LCHlch(41.89, 93.10, 302.08°)
OKLaboklab(51.99% 0.0261 -0.2277)
OKLCHoklch(51.99% 0.229 276.5)
XYZxyz(20.3178, 12.4275, 77.6563)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AE8 #E2E84A
analogous
#4A93E8 #504AE8 #9F4AE8
triadic
#504AE8 #E8504A #4AE850
tetradic
#504AE8 #E84A93 #E2E84A #4AE89F
square
#504AE8 #E84A93 #E2E84A #4AE89F
split-complementary
#504AE8 #E89F4A #93E84A
monochromatic
#1A15A3 #231CD9 #504AE8 #8480EF #B9B7F6

Accessibility & contrast

On white

6.02
#504AE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#504AE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AE8
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AE8#FFFFFF#000000##FFFFFF
##504AE81.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AED
Deuteranopia (green-blind)
#005CE5
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #504ae8;
/* rgb */ color: rgb(80, 74, 232);
/* oklch */ color: oklch(52.0% 0.229 276.5);
Tailwind
colors: {
  custom: {
    50: '#937ef1',
    500: '#504ae8',
    950: '#000000',
  },
}
SCSS
$custom: #504ae8;
$custom-light: #937ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#504ae8",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 232
  },
  "hsl": {
    "h": 242.278,
    "s": 77.451,
    "l": 60
  },
  "oklch": {
    "l": 0.51986,
    "c": 0.22923,
    "h": 276.5
  },
  "luminance": 0.12429
}

Semantic roles & 50–950 ramp

primary
#504AE8
secondary
#E3E5A8
accent
#F434ED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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