#504AEB#504AEB

#504AEB is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.3% C 0.233 H 276.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#504AEB
RGBrgb(80, 74, 235)
HSLhsl(242, 80%, 61%)
HSVhsv(242, 69%, 92%)
CMYKcmyk(66%, 68.5%, 0%, 7.8%)
CIE-LABlab(42.15, 50.39, -80.15)
CIE-LCHlch(42.15, 94.67, 302.16°)
OKLaboklab(52.26% 0.0256 -0.2314)
OKLCHoklch(52.26% 0.233 276.3)
XYZxyz(20.7475, 12.5994, 79.9197)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AEB #E5EB4A
analogous
#4A94EB #504AEB #A04AEB
triadic
#504AEB #EB504A #4AEB50
tetradic
#504AEB #EB4A94 #E5EB4A #4AEBA0
square
#504AEB #EB4A94 #E5EB4A #4AEBA0
split-complementary
#504AEB #EBA04A #94EB4A
monochromatic
#1813A8 #2019DF #504AEB #8581F1 #BBB8F7

Accessibility & contrast

On white

5.97
#504AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#504AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AEB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AEB#FFFFFF#000000##FFFFFF
##504AEB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF0
Deuteranopia (green-blind)
#005CE8
Tritanopia (blue-blind)
#007695
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #504aeb;
/* rgb */ color: rgb(80, 74, 235);
/* oklch */ color: oklch(52.3% 0.233 276.3);
Tailwind
colors: {
  custom: {
    50: '#947ef3',
    500: '#504aeb',
    950: '#000000',
  },
}
SCSS
$custom: #504aeb;
$custom-light: #947ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#504aeb",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 242.236,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52258,
    "c": 0.23285,
    "h": 276.3
  },
  "luminance": 0.12601
}

Semantic roles & 50–950 ramp

primary
#504AEB
secondary
#E5E7AA
accent
#DC09D5
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #504AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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