#505CD7#505CD7

#505CD7 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.6% C 0.187 H 274.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#505CD7
RGBrgb(80, 92, 215)
HSLhsl(235, 63%, 58%)
HSVhsv(235, 63%, 84%)
CMYKcmyk(62.8%, 57.2%, 0%, 15.7%)
CIE-LABlab(44.61, 33.13, -64.77)
CIE-LCHlch(44.61, 72.75, 297.09°)
OKLaboklab(53.56% 0.0131 -0.1862)
OKLCHoklch(53.56% 0.187 274)
XYZxyz(19.3971, 14.2644, 66.0079)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD7 #D7CB50
analogous
#509FD7 #505CD7 #8850D7
triadic
#505CD7 #D7505C #5CD750
tetradic
#505CD7 #D7509F #D7CB50 #50D788
square
#505CD7 #D7509F #D7CB50 #50D788
split-complementary
#505CD7 #D78850 #9FD750
monochromatic
#202A8C #2B39BE #505CD7 #828AE2 #B4B9EE

Accessibility & contrast

On white

5.45
#505CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#505CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD7#FFFFFF#000000##FFFFFF
##505CD71.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0064D5
Tritanopia (blue-blind)
#007A90
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505cd7;
/* rgb */ color: rgb(80, 92, 215);
/* oklch */ color: oklch(53.6% 0.187 274.0);
Tailwind
colors: {
  custom: {
    50: '#8f8ae4',
    500: '#505cd7',
    950: '#000000',
  },
}
SCSS
$custom: #505cd7;
$custom-light: #8f8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd7",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 234.667,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.1867,
    "h": 274
  },
  "luminance": 0.14266
}

Semantic roles & 50–950 ramp

primary
#505CD7
secondary
#DCD8A6
accent
#D742E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CD7

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

Preview Lab → · Contrast checker → · Palette generator →

#505CD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva