#504BD9#504BD9

#504BD9 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.8% C 0.210 H 277.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#504BD9
RGBrgb(80, 75, 217)
HSLhsl(242, 65%, 57%)
HSVhsv(242, 65%, 85%)
CMYKcmyk(63.1%, 65.4%, 0%, 14.9%)
CIE-LABlab(40.81, 44.09, -72.11)
CIE-LCHlch(40.81, 84.52, 301.44°)
OKLaboklab(50.81% 0.0272 -0.2079)
OKLCHoklch(50.81% 0.21 277.4)
XYZxyz(18.3447, 11.7459, 66.9327)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD9 #D4D94B
analogous
#4B8DD9 #504BD9 #974BD9
triadic
#504BD9 #D9504B #4BD950
tetradic
#504BD9 #D94B8D #D4D94B #4BD997
square
#504BD9 #D94B8D #D4D94B #4BD997
split-complementary
#504BD9 #D9974B #8DD94B
monochromatic
#211E8C #2E28BF #504BD9 #817EE4 #B2B0EE

Accessibility & contrast

On white

6.27
#504BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#504BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD9#FFFFFF#000000##FFFFFF
##504BD91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#00708B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504bd9;
/* rgb */ color: rgb(80, 75, 217);
/* oklch */ color: oklch(50.8% 0.210 277.4);
Tailwind
colors: {
  custom: {
    50: '#907ee6',
    500: '#504bd9',
    950: '#000000',
  },
}
SCSS
$custom: #504bd9;
$custom-light: #907ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd9",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 242.113,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50811,
    "c": 0.20968,
    "h": 277.4
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#504BD9
secondary
#DBDDA3
accent
#E840E2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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