#505BB5#505BB5

#505BB5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.9% C 0.141 H 275.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#505BB5
RGBrgb(80, 91, 181)
HSLhsl(233, 41%, 51%)
HSVhsv(233, 56%, 71%)
CMYKcmyk(55.8%, 49.7%, 0%, 29%)
CIE-LABlab(42.04, 22.35, -49.26)
CIE-LCHlch(42.04, 54.09, 294.41°)
OKLaboklab(50.89% 0.0123 -0.1406)
OKLCHoklch(50.89% 0.141 275)
XYZxyz(15.3872, 12.5228, 45.3134)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB5 #B5AA50
analogous
#508DB5 #505BB5 #7750B5
triadic
#505BB5 #B5505B #5BB550
tetradic
#505BB5 #B5508D #B5AA50 #50B577
square
#505BB5 #B5508D #B5AA50 #50B577
split-complementary
#505BB5 #B57750 #8DB550
monochromatic
#292F61 #3B448C #505BB5 #7B83C7 #A6ACD9

Accessibility & contrast

On white

5.99
#505BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#505BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB5#FFFFFF#000000##FFFFFF
##505BB51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B8
Deuteranopia (green-blind)
#205FB3
Tritanopia (blue-blind)
#1A6F7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505bb5;
/* rgb */ color: rgb(80, 91, 181);
/* oklch */ color: oklch(50.9% 0.141 275.0);
Tailwind
colors: {
  custom: {
    50: '#8989cc',
    500: '#505bb5',
    950: '#000000',
  },
}
SCSS
$custom: #505bb5;
$custom-light: #8989cc;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb5",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 233.465,
    "s": 40.562,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.14116,
    "h": 275
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#505BB5
secondary
#C7C29A
accent
#C357D0
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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