#505DCC#505DCC

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

Color values

HEX#505DCC
RGBrgb(80, 93, 204)
HSLhsl(234, 55%, 56%)
HSVhsv(234, 61%, 80%)
CMYKcmyk(60.8%, 54.4%, 0%, 20%)
CIE-LABlab(44.08, 28.80, -59.32)
CIE-LCHlch(44.08, 65.94, 295.90°)
OKLaboklab(52.91% 0.0119 -0.1702)
OKLCHoklch(52.91% 0.171 274)
XYZxyz(18.1181, 13.8924, 58.8418)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DCC #CCBF50
analogous
#509BCC #505DCC #8150CC
triadic
#505DCC #CC505D #5DCC50
tetradic
#505DCC #CC509B #CCBF50 #50CC81
square
#505DCC #CC509B #CCBF50 #50CC81
split-complementary
#505DCC #CC8150 #9BCC50
monochromatic
#242E7D #323FAD #505DCC #7F89DA #AFB5E8

Accessibility & contrast

On white

5.56
#505DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#505DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DCC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DCC#FFFFFF#000000##FFFFFF
##505DCC1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6ED0
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505dcc;
/* rgb */ color: rgb(80, 93, 204);
/* oklch */ color: oklch(52.9% 0.171 274.0);
Tailwind
colors: {
  custom: {
    50: '#8d8adc',
    500: '#505dcc',
    950: '#000000',
  },
}
SCSS
$custom: #505dcc;
$custom-light: #8d8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#505dcc",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 233.71,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52912,
    "c": 0.17064,
    "h": 274
  },
  "luminance": 0.13894
}

Semantic roles & 50–950 ramp

primary
#505DCC
secondary
#D6D0A2
accent
#CF4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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