#505CD1#505CD1

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

Color values

HEX#505CD1
RGBrgb(80, 92, 209)
HSLhsl(234, 58%, 57%)
HSVhsv(234, 62%, 82%)
CMYKcmyk(61.7%, 56%, 0%, 18%)
CIE-LABlab(44.18, 31.11, -62.03)
CIE-LCHlch(44.18, 69.40, 296.63°)
OKLaboklab(53.1% 0.013 -0.1782)
OKLCHoklch(53.1% 0.179 274.2)
XYZxyz(18.6402, 13.9617, 62.0218)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD1 #D1C550
analogous
#509CD1 #505CD1 #8550D1
triadic
#505CD1 #D1505C #5CD150
tetradic
#505CD1 #D1509C #D1C550 #50D185
square
#505CD1 #D1509C #D1C550 #50D185
split-complementary
#505CD1 #D18550 #9CD150
monochromatic
#232C84 #2F3CB4 #505CD1 #8089DE #B1B6EA

Accessibility & contrast

On white

5.54
#505CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#505CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD1
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD1#FFFFFF#000000##FFFFFF
##505CD11.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#00788D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505cd1;
/* rgb */ color: rgb(80, 92, 209);
/* oklch */ color: oklch(53.1% 0.179 274.2);
Tailwind
colors: {
  custom: {
    50: '#8e8ae0',
    500: '#505cd1',
    950: '#000000',
  },
}
SCSS
$custom: #505cd1;
$custom-light: #8e8ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd1",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 209
  },
  "hsl": {
    "h": 234.419,
    "s": 58.371,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53098,
    "c": 0.17868,
    "h": 274.2
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#505CD1
secondary
#D9D4A4
accent
#D346E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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