#505CDC#505CDC

#505CDC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.9% C 0.193 H 273.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#505CDC
RGBrgb(80, 92, 220)
HSLhsl(235, 67%, 59%)
HSVhsv(235, 64%, 86%)
CMYKcmyk(63.6%, 58.2%, 0%, 13.7%)
CIE-LABlab(44.98, 34.81, -67.02)
CIE-LCHlch(44.98, 75.52, 297.44°)
OKLaboklab(53.94% 0.0132 -0.1929)
OKLCHoklch(53.94% 0.193 273.9)
XYZxyz(20.0494, 14.5254, 69.4434)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CDC #DCD050
analogous
#50A2DC #505CDC #8A50DC
triadic
#505CDC #DC505C #5CDC50
tetradic
#505CDC #DC50A2 #DCD050 #50DC8A
square
#505CDC #DC50A2 #DCD050 #50DC8A
split-complementary
#505CDC #DC8A50 #A2DC50
monochromatic
#1E2894 #2835C7 #505CDC #838CE6 #B6BBF0

Accessibility & contrast

On white

5.38
#505CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#505CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CDC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CDC#FFFFFF#000000##FFFFFF
##505CDC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#0064D9
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505cdc;
/* rgb */ color: rgb(80, 92, 220);
/* oklch */ color: oklch(53.9% 0.193 273.9);
Tailwind
colors: {
  custom: {
    50: '#8f8ae8',
    500: '#505cdc',
    950: '#000000',
  },
}
SCSS
$custom: #505cdc;
$custom-light: #8f8ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#505cdc",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 234.857,
    "s": 66.667,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53944,
    "c": 0.19332,
    "h": 273.9
  },
  "luminance": 0.14527
}

Semantic roles & 50–950 ramp

primary
#505CDC
secondary
#DFDBA8
accent
#DB3EEA
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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