#505CB3#505CB3

#505CB3 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.137 H 274.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#505CB3
RGBrgb(80, 92, 179)
HSLhsl(233, 39%, 51%)
HSVhsv(233, 55%, 70%)
CMYKcmyk(55.3%, 48.6%, 0%, 29.8%)
CIE-LABlab(42.17, 21.06, -47.86)
CIE-LCHlch(42.17, 52.29, 293.75°)
OKLaboklab(50.95% 0.0109 -0.1365)
OKLCHoklch(50.95% 0.137 274.6)
XYZxyz(15.2695, 12.6134, 44.2691)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CB3 #B3A750
analogous
#508DB3 #505CB3 #7550B3
triadic
#505CB3 #B3505C #5CB350
tetradic
#505CB3 #B3508D #B3A750 #50B375
square
#505CB3 #B3508D #B3A750 #50B375
split-complementary
#505CB3 #B37550 #8DB350
monochromatic
#29305F #3C458A #505CB3 #7B84C6 #A5ABD8

Accessibility & contrast

On white

5.96
#505CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#505CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CB3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CB3#FFFFFF#000000##FFFFFF
##505CB31.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#2560B1
Tritanopia (blue-blind)
#1C6F7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505cb3;
/* rgb */ color: rgb(80, 92, 179);
/* oklch */ color: oklch(51.0% 0.137 274.6);
Tailwind
colors: {
  custom: {
    50: '#898aca',
    500: '#505cb3',
    950: '#000000',
  },
}
SCSS
$custom: #505cb3;
$custom-light: #898aca;
$custom-dark: #000000;
JSON
{
  "hex": "#505cb3",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 232.727,
    "s": 39.442,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50953,
    "c": 0.13696,
    "h": 274.6
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#505CB3
secondary
#C5C099
accent
#C158CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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