#506CB2#506CB2

#506CB2 is a mid, moderate blue. Relative luminance 0.156; OKLCH L 54.2% C 0.115 H 266.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#506CB2
RGBrgb(80, 108, 178)
HSLhsl(223, 39%, 51%)
HSVhsv(223, 55%, 70%)
CMYKcmyk(55.1%, 39.3%, 0%, 30.2%)
CIE-LABlab(46.50, 10.66, -40.38)
CIE-LCHlch(46.50, 41.76, 284.78°)
OKLaboklab(54.25% -0.0076 -0.1144)
OKLCHoklch(54.25% 0.115 266.2)
XYZxyz(16.7040, 15.6437, 44.2501)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#506CB2 #B29650
analogous
#509DB2 #506CB2 #6550B2
triadic
#506CB2 #B2506C #6CB250
tetradic
#506CB2 #B2509D #B29650 #50B265
square
#506CB2 #B2509D #B29650 #50B265
split-complementary
#506CB2 #B26550 #9DB250
monochromatic
#29385E #3C5289 #506CB2 #7A90C5 #A5B3D7

Accessibility & contrast

On white

5.09
#506CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#506CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #506CB2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##506CB2#FFFFFF#000000##FFFFFF
##506CB21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F73B5
Deuteranopia (green-blind)
#446AB0
Tritanopia (blue-blind)
#197B86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #506cb2;
/* rgb */ color: rgb(80, 108, 178);
/* oklch */ color: oklch(54.2% 0.115 266.2);
Tailwind
colors: {
  custom: {
    50: '#8895c9',
    500: '#506cb2',
    950: '#000000',
  },
}
SCSS
$custom: #506cb2;
$custom-light: #8895c9;
$custom-dark: #000000;
JSON
{
  "hex": "#506cb2",
  "rgb": {
    "r": 80,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 222.857,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54246,
    "c": 0.11466,
    "h": 266.2
  },
  "luminance": 0.15645
}

Semantic roles & 50–950 ramp

primary
#506CB2
secondary
#C5B899
accent
#AD59CF
background
#F8F9FC
surface
#F0F1F8
border
#CBCBD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #506CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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