#504FE1#504FE1

#504FE1 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.1% C 0.215 H 276.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#504FE1
RGBrgb(80, 79, 225)
HSLhsl(240, 71%, 60%)
HSVhsv(240, 65%, 88%)
CMYKcmyk(64.4%, 64.9%, 0%, 11.8%)
CIE-LABlab(42.36, 44.32, -74.14)
CIE-LCHlch(42.36, 86.38, 300.87°)
OKLaboklab(52.14% 0.0233 -0.2139)
OKLCHoklch(52.14% 0.215 276.2)
XYZxyz(19.6904, 12.7320, 72.6394)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE1 #E0E14F
analogous
#4F97E1 #504FE1 #994FE1
triadic
#504FE1 #E1504F #4FE150
tetradic
#504FE1 #E14F97 #E0E14F #4FE199
square
#504FE1 #E14F97 #E0E14F #4FE199
split-complementary
#504FE1 #E1994F #97E14F
monochromatic
#1B1A9B #2523CF #504FE1 #8483EA #B8B8F3

Accessibility & contrast

On white

5.92
#504FE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#504FE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FE1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE1#FFFFFF#000000##FFFFFF
##504FE11.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#007591
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504fe1;
/* rgb */ color: rgb(80, 79, 225);
/* oklch */ color: oklch(52.1% 0.215 276.2);
Tailwind
colors: {
  custom: {
    50: '#9181ec',
    500: '#504fe1',
    950: '#000000',
  },
}
SCSS
$custom: #504fe1;
$custom-light: #9181ec;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe1",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 225
  },
  "hsl": {
    "h": 240.411,
    "s": 70.874,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52141,
    "c": 0.21513,
    "h": 276.2
  },
  "luminance": 0.12734
}

Semantic roles & 50–950 ramp

primary
#504FE1
secondary
#E2E2AA
accent
#EE3AEC
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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