#505CD8#505CD8

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

Color values

HEX#505CD8
RGBrgb(80, 92, 216)
HSLhsl(235, 64%, 58%)
HSVhsv(235, 63%, 85%)
CMYKcmyk(63%, 57.4%, 0%, 15.3%)
CIE-LABlab(44.68, 33.46, -65.22)
CIE-LCHlch(44.68, 73.30, 297.16°)
OKLaboklab(53.63% 0.0131 -0.1876)
OKLCHoklch(53.63% 0.188 274)
XYZxyz(19.5260, 14.3160, 66.6867)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD8 #D8CC50
analogous
#50A0D8 #505CD8 #8850D8
triadic
#505CD8 #D8505C #5CD850
tetradic
#505CD8 #D850A0 #D8CC50 #50D888
square
#505CD8 #D850A0 #D8CC50 #50D888
split-complementary
#505CD8 #D88850 #A0D850
monochromatic
#20298E #2B38C0 #505CD8 #828BE3 #B4B9EE

Accessibility & contrast

On white

5.44
#505CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#505CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD8#FFFFFF#000000##FFFFFF
##505CD81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#007A91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505cd8;
/* rgb */ color: rgb(80, 92, 216);
/* oklch */ color: oklch(53.6% 0.188 274.0);
Tailwind
colors: {
  custom: {
    50: '#8f8ae5',
    500: '#505cd8',
    950: '#000000',
  },
}
SCSS
$custom: #505cd8;
$custom-light: #8f8ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd8",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 234.706,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53633,
    "c": 0.18803,
    "h": 274
  },
  "luminance": 0.14318
}

Semantic roles & 50–950 ramp

primary
#505CD8
secondary
#DDD8A7
accent
#D841E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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