#504FE6#504FE6

#504FE6 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.6% C 0.221 H 275.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#504FE6
RGBrgb(80, 79, 230)
HSLhsl(240, 75%, 61%)
HSVhsv(240, 66%, 90%)
CMYKcmyk(65.2%, 65.7%, 0%, 9.8%)
CIE-LABlab(42.78, 45.93, -76.29)
CIE-LCHlch(42.78, 89.05, 301.05°)
OKLaboklab(52.58% 0.0228 -0.2202)
OKLCHoklch(52.58% 0.221 275.9)
XYZxyz(20.3825, 13.0088, 76.2844)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FE6 #E5E64F
analogous
#4F9AE6 #504FE6 #9B4FE6
triadic
#504FE6 #E6504F #4FE650
tetradic
#504FE6 #E64F9A #E5E64F #4FE69B
square
#504FE6 #E64F9A #E5E64F #4FE69B
split-complementary
#504FE6 #E69B4F #9AE64F
monochromatic
#1817A3 #201FD9 #504FE6 #8585EE #BBBAF5

Accessibility & contrast

On white

5.83
#504FE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#504FE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FE6
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FE6#FFFFFF#000000##FFFFFF
##504FE61.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEB
Deuteranopia (green-blind)
#005EE3
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #504fe6;
/* rgb */ color: rgb(80, 79, 230);
/* oklch */ color: oklch(52.6% 0.221 275.9);
Tailwind
colors: {
  custom: {
    50: '#9281ef',
    500: '#504fe6',
    950: '#000000',
  },
}
SCSS
$custom: #504fe6;
$custom-light: #9281ef;
$custom-dark: #000000;
JSON
{
  "hex": "#504fe6",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 230
  },
  "hsl": {
    "h": 240.397,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52576,
    "c": 0.22134,
    "h": 275.9
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#504FE6
secondary
#E5E5AC
accent
#D70ED6
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #504FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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