#505BCC#505BCC

#505BCC is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.5% C 0.173 H 274.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#505BCC
RGBrgb(80, 91, 204)
HSLhsl(235, 55%, 56%)
HSVhsv(235, 61%, 80%)
CMYKcmyk(60.8%, 55.4%, 0%, 20%)
CIE-LABlab(43.57, 30.05, -60.14)
CIE-LCHlch(43.57, 67.23, 296.55°)
OKLaboklab(52.54% 0.0138 -0.1726)
OKLCHoklch(52.54% 0.173 274.6)
XYZxyz(17.9449, 13.5459, 58.7840)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BCC #CCC150
analogous
#5099CC #505BCC #8350CC
triadic
#505BCC #CC505B #5BCC50
tetradic
#505BCC #CC5099 #CCC150 #50CC83
square
#505BCC #CC5099 #CCC150 #50CC83
split-complementary
#505BCC #CC8350 #99CC50
monochromatic
#242C7D #323DAD #505BCC #7F87DA #AFB4E8

Accessibility & contrast

On white

5.66
#505BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#505BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BCC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BCC#FFFFFF#000000##FFFFFF
##505BCC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505bcc;
/* rgb */ color: rgb(80, 91, 204);
/* oklch */ color: oklch(52.5% 0.173 274.6);
Tailwind
colors: {
  custom: {
    50: '#8d89dc',
    500: '#505bcc',
    950: '#000000',
  },
}
SCSS
$custom: #505bcc;
$custom-light: #8d89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#505bcc",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 234.677,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.17318,
    "h": 274.6
  },
  "luminance": 0.13547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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