#505CB2#505CB2

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

Color values

HEX#505CB2
RGBrgb(80, 92, 178)
HSLhsl(233, 39%, 51%)
HSVhsv(233, 55%, 70%)
CMYKcmyk(55.1%, 48.3%, 0%, 30.2%)
CIE-LABlab(42.11, 20.72, -47.38)
CIE-LCHlch(42.11, 51.71, 293.63°)
OKLaboklab(50.89% 0.0108 -0.1351)
OKLCHoklch(50.89% 0.136 274.6)
XYZxyz(15.1687, 12.5731, 43.7384)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CB2 #B2A650
analogous
#508DB2 #505CB2 #7550B2
triadic
#505CB2 #B2505C #5CB250
tetradic
#505CB2 #B2508D #B2A650 #50B275
square
#505CB2 #B2508D #B2A650 #50B275
split-complementary
#505CB2 #B27550 #8DB250
monochromatic
#29305E #3C4689 #505CB2 #7A84C5 #A5ABD7

Accessibility & contrast

On white

5.97
#505CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#505CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CB2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CB2#FFFFFF#000000##FFFFFF
##505CB21.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#275FB0
Tritanopia (blue-blind)
#1E6F7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505cb2;
/* rgb */ color: rgb(80, 92, 178);
/* oklch */ color: oklch(50.9% 0.136 274.6);
Tailwind
colors: {
  custom: {
    50: '#898ac9',
    500: '#505cb2',
    950: '#000000',
  },
}
SCSS
$custom: #505cb2;
$custom-light: #898ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#505cb2",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 232.653,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50886,
    "c": 0.13551,
    "h": 274.6
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#505CB2
secondary
#C5BF99
accent
#C059CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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