#504BE7#504BE7

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

Color values

HEX#504BE7
RGBrgb(80, 75, 231)
HSLhsl(242, 76%, 60%)
HSVhsv(242, 68%, 91%)
CMYKcmyk(65.4%, 67.5%, 0%, 9.4%)
CIE-LABlab(42.01, 48.56, -78.12)
CIE-LCHlch(42.01, 91.98, 301.87°)
OKLaboklab(52.05% 0.0255 -0.2255)
OKLCHoklch(52.05% 0.227 276.5)
XYZxyz(20.2434, 12.5054, 76.9328)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BE7 #E2E74B
analogous
#4B94E7 #504BE7 #9E4BE7
triadic
#504BE7 #E7504B #4BE750
tetradic
#504BE7 #E74B94 #E2E74B #4BE79E
square
#504BE7 #E74B94 #E2E74B #4BE79E
split-complementary
#504BE7 #E79E4B #94E74B
monochromatic
#1A16A2 #231DD8 #504BE7 #8481EE #B9B7F5

Accessibility & contrast

On white

6.00
#504BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#504BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BE7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BE7#FFFFFF#000000##FFFFFF
##504BE71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504be7;
/* rgb */ color: rgb(80, 75, 231);
/* oklch */ color: oklch(52.0% 0.227 276.5);
Tailwind
colors: {
  custom: {
    50: '#937ef0',
    500: '#504be7',
    950: '#000000',
  },
}
SCSS
$custom: #504be7;
$custom-light: #937ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#504be7",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 241.923,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.52046,
    "c": 0.22696,
    "h": 276.5
  },
  "luminance": 0.12507
}

Semantic roles & 50–950 ramp

primary
#504BE7
secondary
#E3E5A9
accent
#F335ED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #504BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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