#505CD6#505CD6

#505CD6 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.5% C 0.185 H 274.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#505CD6
RGBrgb(80, 92, 214)
HSLhsl(235, 62%, 58%)
HSVhsv(235, 63%, 84%)
CMYKcmyk(62.6%, 57%, 0%, 16.1%)
CIE-LABlab(44.54, 32.79, -64.32)
CIE-LCHlch(44.54, 72.19, 297.01°)
OKLaboklab(53.48% 0.0131 -0.1849)
OKLCHoklch(53.48% 0.185 274.1)
XYZxyz(19.2690, 14.2132, 65.3333)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD6 #D6CA50
analogous
#509FD6 #505CD6 #8750D6
triadic
#505CD6 #D6505C #5CD650
tetradic
#505CD6 #D6509F #D6CA50 #50D687
square
#505CD6 #D6509F #D6CA50 #50D687
split-complementary
#505CD6 #D68750 #9FD650
monochromatic
#212A8B #2C39BD #505CD6 #828AE2 #B3B8ED

Accessibility & contrast

On white

5.46
#505CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#505CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD6
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD6#FFFFFF#000000##FFFFFF
##505CD61.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#0064D4
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505cd6;
/* rgb */ color: rgb(80, 92, 214);
/* oklch */ color: oklch(53.5% 0.185 274.1);
Tailwind
colors: {
  custom: {
    50: '#8e8ae3',
    500: '#505cd6',
    950: '#000000',
  },
}
SCSS
$custom: #505cd6;
$custom-light: #8e8ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd6",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 214
  },
  "hsl": {
    "h": 234.627,
    "s": 62.037,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53479,
    "c": 0.18537,
    "h": 274.1
  },
  "luminance": 0.14215
}

Semantic roles & 50–950 ramp

primary
#505CD6
secondary
#DCD7A6
accent
#D743E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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