#504BD7#504BD7

#504BD7 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.6% C 0.207 H 277.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#504BD7
RGBrgb(80, 75, 215)
HSLhsl(242, 64%, 57%)
HSVhsv(242, 65%, 84%)
CMYKcmyk(62.8%, 65.1%, 0%, 15.7%)
CIE-LABlab(40.64, 43.44, -71.23)
CIE-LCHlch(40.64, 83.44, 301.38°)
OKLaboklab(50.64% 0.0274 -0.2053)
OKLCHoklch(50.64% 0.207 277.6)
XYZxyz(18.0861, 11.6425, 65.5709)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD7 #D2D74B
analogous
#4B8CD7 #504BD7 #964BD7
triadic
#504BD7 #D7504B #4BD750
tetradic
#504BD7 #D74B8C #D2D74B #4BD796
square
#504BD7 #D74B8C #D2D74B #4BD796
split-complementary
#504BD7 #D7964B #8CD74B
monochromatic
#221E89 #2F2ABB #504BD7 #817DE2 #B1AFED

Accessibility & contrast

On white

6.31
#504BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#504BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD7#FFFFFF#000000##FFFFFF
##504BD71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#006F8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504bd7;
/* rgb */ color: rgb(80, 75, 215);
/* oklch */ color: oklch(50.6% 0.207 277.6);
Tailwind
colors: {
  custom: {
    50: '#907ee4',
    500: '#504bd7',
    950: '#000000',
  },
}
SCSS
$custom: #504bd7;
$custom-light: #907ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd7",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 242.143,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50638,
    "c": 0.20716,
    "h": 277.6
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#504BD7
secondary
#D9DBA2
accent
#E741E1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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