#505DC5#505DC5

#505DC5 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.161 H 274.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#505DC5
RGBrgb(80, 93, 197)
HSLhsl(233, 50%, 54%)
HSVhsv(233, 59%, 77%)
CMYKcmyk(59.4%, 52.8%, 0%, 22.7%)
CIE-LABlab(43.60, 26.44, -56.05)
CIE-LCHlch(43.60, 61.98, 295.26°)
OKLaboklab(52.4% 0.0115 -0.1606)
OKLCHoklch(52.4% 0.161 274.1)
XYZxyz(17.2974, 13.5641, 54.5191)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DC5 #C5B850
analogous
#5098C5 #505DC5 #7E50C5
triadic
#505DC5 #C5505D #5DC550
tetradic
#505DC5 #C55098 #C5B850 #50C57E
square
#505DC5 #C55098 #C5B850 #50C57E
split-complementary
#505DC5 #C57E50 #98C550
monochromatic
#262F74 #3642A2 #505DC5 #7E88D4 #ACB2E3

Accessibility & contrast

On white

5.66
#505DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#505DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DC5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DC5#FFFFFF#000000##FFFFFF
##505DC51.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6CC9
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505dc5;
/* rgb */ color: rgb(80, 93, 197);
/* oklch */ color: oklch(52.4% 0.161 274.1);
Tailwind
colors: {
  custom: {
    50: '#8b8ad7',
    500: '#505dc5',
    950: '#000000',
  },
}
SCSS
$custom: #505dc5;
$custom-light: #8b8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#505dc5",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 233.333,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52402,
    "c": 0.16101,
    "h": 274.1
  },
  "luminance": 0.13565
}

Semantic roles & 50–950 ramp

primary
#505DC5
secondary
#D1CCA0
accent
#CA4EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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