#505CD2#505CD2

#505CD2 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.2% C 0.180 H 274.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#505CD2
RGBrgb(80, 92, 210)
HSLhsl(234, 59%, 57%)
HSVhsv(234, 62%, 82%)
CMYKcmyk(61.9%, 56.2%, 0%, 17.6%)
CIE-LABlab(44.25, 31.45, -62.49)
CIE-LCHlch(44.25, 69.96, 296.71°)
OKLaboklab(53.17% 0.0131 -0.1795)
OKLCHoklch(53.17% 0.18 274.2)
XYZxyz(18.7644, 14.0114, 62.6759)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD2 #D2C650
analogous
#509DD2 #505CD2 #8550D2
triadic
#505CD2 #D2505C #5CD250
tetradic
#505CD2 #D2509D #D2C650 #50D285
square
#505CD2 #D2509D #D2C650 #50D285
split-complementary
#505CD2 #D28550 #9DD250
monochromatic
#222B85 #2F3BB6 #505CD2 #8189DF #B1B7EB

Accessibility & contrast

On white

5.52
#505CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#505CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD2#FFFFFF#000000##FFFFFF
##505CD21.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#00788E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505cd2;
/* rgb */ color: rgb(80, 92, 210);
/* oklch */ color: oklch(53.2% 0.180 274.2);
Tailwind
colors: {
  custom: {
    50: '#8e8ae1',
    500: '#505cd2',
    950: '#000000',
  },
}
SCSS
$custom: #505cd2;
$custom-light: #8e8ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd2",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 234.462,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53174,
    "c": 0.18002,
    "h": 274.2
  },
  "luminance": 0.14013
}

Semantic roles & 50–950 ramp

primary
#505CD2
secondary
#D9D5A4
accent
#D446E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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