#505CD5#505CD5

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

Color values

HEX#505CD5
RGBrgb(80, 92, 213)
HSLhsl(235, 61%, 57%)
HSVhsv(235, 62%, 84%)
CMYKcmyk(62.4%, 56.8%, 0%, 16.5%)
CIE-LABlab(44.46, 32.45, -63.86)
CIE-LCHlch(44.46, 71.63, 296.94°)
OKLaboklab(53.4% 0.0131 -0.1836)
OKLCHoklch(53.4% 0.184 274.1)
XYZxyz(19.1417, 14.1623, 64.6628)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD5 #D5C950
analogous
#509FD5 #505CD5 #8650D5
triadic
#505CD5 #D5505C #5CD550
tetradic
#505CD5 #D5509F #D5C950 #50D586
square
#505CD5 #D5509F #D5C950 #50D586
split-complementary
#505CD5 #D58650 #9FD550
monochromatic
#212A8A #2D3ABB #505CD5 #818AE1 #B3B8ED

Accessibility & contrast

On white

5.48
#505CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#505CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD5
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD5#FFFFFF#000000##FFFFFF
##505CD51.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#0063D3
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505cd5;
/* rgb */ color: rgb(80, 92, 213);
/* oklch */ color: oklch(53.4% 0.184 274.1);
Tailwind
colors: {
  custom: {
    50: '#8e8ae3',
    500: '#505cd5',
    950: '#000000',
  },
}
SCSS
$custom: #505cd5;
$custom-light: #8e8ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd5",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 234.586,
    "s": 61.29,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53402,
    "c": 0.18404,
    "h": 274.1
  },
  "luminance": 0.14164
}

Semantic roles & 50–950 ramp

primary
#505CD5
secondary
#DBD6A6
accent
#D643E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #505CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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