#505BB1#505BB1

#505BB1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.135 H 275.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#505BB1
RGBrgb(80, 91, 177)
HSLhsl(233, 38%, 50%)
HSVhsv(233, 55%, 69%)
CMYKcmyk(54.8%, 48.6%, 0%, 30.6%)
CIE-LABlab(41.78, 21.03, -47.31)
CIE-LCHlch(41.78, 51.78, 293.96°)
OKLaboklab(50.62% 0.0118 -0.1349)
OKLCHoklch(50.62% 0.135 275)
XYZxyz(14.9826, 12.3610, 43.1828)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB1 #B1A650
analogous
#508BB1 #505BB1 #7550B1
triadic
#505BB1 #B1505B #5BB150
tetradic
#505BB1 #B1508B #B1A650 #50B175
square
#505BB1 #B1508B #B1A650 #50B175
split-complementary
#505BB1 #B17550 #8BB150
monochromatic
#292F5D #3C4587 #505BB1 #7A83C4 #A5AAD7

Accessibility & contrast

On white

6.05
#505BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#505BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB1
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB1#FFFFFF#000000##FFFFFF
##505BB11.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B4
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#206E7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505bb1;
/* rgb */ color: rgb(80, 91, 177);
/* oklch */ color: oklch(50.6% 0.135 275.0);
Tailwind
colors: {
  custom: {
    50: '#8889c9',
    500: '#505bb1',
    950: '#000000',
  },
}
SCSS
$custom: #505bb1;
$custom-light: #8889c9;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb1",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 233.196,
    "s": 38.34,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50617,
    "c": 0.13543,
    "h": 275
  },
  "luminance": 0.12362
}

Semantic roles & 50–950 ramp

primary
#505BB1
secondary
#C4BF99
accent
#C15ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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