#505DCD#505DCD

#505DCD is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.0% C 0.172 H 274.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#505DCD
RGBrgb(80, 93, 205)
HSLhsl(234, 56%, 56%)
HSVhsv(234, 61%, 80%)
CMYKcmyk(61%, 54.6%, 0%, 19.6%)
CIE-LABlab(44.15, 29.14, -59.79)
CIE-LCHlch(44.15, 66.51, 295.98°)
OKLaboklab(52.99% 0.012 -0.1716)
OKLCHoklch(52.99% 0.172 274)
XYZxyz(18.2384, 13.9405, 59.4754)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DCD #CDC050
analogous
#509BCD #505DCD #8150CD
triadic
#505DCD #CD505D #5DCD50
tetradic
#505DCD #CD509B #CDC050 #50CD81
square
#505DCD #CD509B #CDC050 #50CD81
split-complementary
#505DCD #CD8150 #9BCD50
monochromatic
#242E7E #323FAE #505DCD #8089DB #AFB5E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505DCD#FFFFFF#000000##FFFFFF
##505DCD1.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)
#086ED1
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#00778C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505dcd;
/* rgb */ color: rgb(80, 93, 205);
/* oklch */ color: oklch(53.0% 0.172 274.0);
Tailwind
colors: {
  custom: {
    50: '#8d8add',
    500: '#505dcd',
    950: '#000000',
  },
}
SCSS
$custom: #505dcd;
$custom-light: #8d8add;
$custom-dark: #000000;
JSON
{
  "hex": "#505dcd",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 233.76,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52986,
    "c": 0.172,
    "h": 274
  },
  "luminance": 0.13942
}

Semantic roles & 50–950 ramp

primary
#505DCD
secondary
#D6D1A2
accent
#CF49DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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