#504FE2#504FE2

#504FE2 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.2% C 0.216 H 276.2°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#504FE2
RGBrgb(80, 79, 226)
HSLhsl(240, 72%, 60%)
HSVhsv(240, 65%, 89%)
CMYKcmyk(64.6%, 65%, 0%, 11.4%)
CIE-LABlab(42.44, 44.64, -74.57)
CIE-LCHlch(42.44, 86.91, 300.90°)
OKLaboklab(52.23% 0.0232 -0.2151)
OKLCHoklch(52.23% 0.216 276.2)
XYZxyz(19.8272, 12.7867, 73.3600)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE2 #E1E24F
analogous
#4F98E2 #504FE2 #994FE2
triadic
#504FE2 #E2504F #4FE250
tetradic
#504FE2 #E24F98 #E1E24F #4FE299
square
#504FE2 #E24F98 #E1E24F #4FE299
split-complementary
#504FE2 #E2994F #98E24F
monochromatic
#1B1A9D #2422D1 #504FE2 #8484EB #B8B8F3

Accessibility & contrast

On white

5.90
#504FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504FE2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE2#FFFFFF#000000##FFFFFF
##504FE21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #504fe2;
/* rgb */ color: rgb(80, 79, 226);
/* oklch */ color: oklch(52.2% 0.216 276.2);
Tailwind
colors: {
  custom: {
    50: '#9181ec',
    500: '#504fe2',
    950: '#000000',
  },
}
SCSS
$custom: #504fe2;
$custom-light: #9181ec;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe2",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 240.408,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.21637,
    "h": 276.2
  },
  "luminance": 0.12788
}

Semantic roles & 50–950 ramp

primary
#504FE2
secondary
#E2E3AA
accent
#EE39ED
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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