#505CCC#505CCC

#505CCC is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.7% C 0.172 H 274.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#505CCC
RGBrgb(80, 92, 204)
HSLhsl(234, 55%, 56%)
HSVhsv(234, 61%, 80%)
CMYKcmyk(60.8%, 54.9%, 0%, 20%)
CIE-LABlab(43.83, 29.43, -59.73)
CIE-LCHlch(43.83, 66.59, 296.23°)
OKLaboklab(52.72% 0.0129 -0.1714)
OKLCHoklch(52.72% 0.172 274.3)
XYZxyz(18.0309, 13.7180, 58.8127)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CCC #CCC050
analogous
#509ACC #505CCC #8250CC
triadic
#505CCC #CC505C #5CCC50
tetradic
#505CCC #CC509A #CCC050 #50CC82
square
#505CCC #CC509A #CCC050 #50CC82
split-complementary
#505CCC #CC8250 #9ACC50
monochromatic
#242D7D #323EAD #505CCC #7F88DA #AFB4E8

Accessibility & contrast

On white

5.61
#505CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#505CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CCC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CCC#FFFFFF#000000##FFFFFF
##505CCC1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DD0
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ccc;
/* rgb */ color: rgb(80, 92, 204);
/* oklch */ color: oklch(52.7% 0.172 274.3);
Tailwind
colors: {
  custom: {
    50: '#8d8adc',
    500: '#505ccc',
    950: '#000000',
  },
}
SCSS
$custom: #505ccc;
$custom-light: #8d8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#505ccc",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 234.194,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.17191,
    "h": 274.3
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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