#505CB4#505CB4

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

Color values

HEX#505CB4
RGBrgb(80, 92, 180)
HSLhsl(233, 40%, 51%)
HSVhsv(233, 56%, 71%)
CMYKcmyk(55.6%, 48.9%, 0%, 29.4%)
CIE-LABlab(42.24, 21.39, -48.35)
CIE-LCHlch(42.24, 52.87, 293.86°)
OKLaboklab(51.02% 0.011 -0.1379)
OKLCHoklch(51.02% 0.138 274.6)
XYZxyz(15.3710, 12.6540, 44.8037)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CB4 #B4A850
analogous
#508EB4 #505CB4 #7650B4
triadic
#505CB4 #B4505C #5CB450
tetradic
#505CB4 #B4508E #B4A850 #50B476
square
#505CB4 #B4508E #B4A850 #50B476
split-complementary
#505CB4 #B47650 #8EB450
monochromatic
#293060 #3C458B #505CB4 #7B84C6 #A6ACD9

Accessibility & contrast

On white

5.95
#505CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#505CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CB4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CB4#FFFFFF#000000##FFFFFF
##505CB41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B7
Deuteranopia (green-blind)
#2460B2
Tritanopia (blue-blind)
#1B707F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505cb4;
/* rgb */ color: rgb(80, 92, 180);
/* oklch */ color: oklch(51.0% 0.138 274.6);
Tailwind
colors: {
  custom: {
    50: '#898acb',
    500: '#505cb4',
    950: '#000000',
  },
}
SCSS
$custom: #505cb4;
$custom-light: #898acb;
$custom-dark: #000000;
JSON
{
  "hex": "#505cb4",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 232.8,
    "s": 40,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5102,
    "c": 0.13838,
    "h": 274.6
  },
  "luminance": 0.12655
}

Semantic roles & 50–950 ramp

primary
#505CB4
secondary
#C6C19A
accent
#C158D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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