#505B9D#505B9D

#505B9D is a mid, moderate blue. Relative luminance 0.116; OKLCH L 49.3% C 0.106 H 274.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#505B9D
RGBrgb(80, 91, 157)
HSLhsl(231, 32%, 46%)
HSVhsv(231, 49%, 62%)
CMYKcmyk(49%, 42%, 0%, 38.4%)
CIE-LABlab(40.61, 14.49, -37.34)
CIE-LCHlch(40.61, 40.06, 291.21°)
OKLaboklab(49.34% 0.0087 -0.1057)
OKLCHoklch(49.34% 0.106 274.7)
XYZxyz(13.1332, 11.6212, 33.4428)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B9D #9D9250
analogous
#50829D #505B9D #6C509D
triadic
#505B9D #9D505B #5B9D50
tetradic
#505B9D #9D5082 #9D9250 #509D6C
square
#505B9D #9D5082 #9D9250 #509D6C
split-complementary
#505B9D #9D6C50 #829D50
monochromatic
#272C4C #3B4474 #505B9D #737DB8 #9BA2CC

Accessibility & contrast

On white

6.32
#505B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#505B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505B9D
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505B9D#FFFFFF#000000##FFFFFF
##505B9D1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4163A0
Deuteranopia (green-blind)
#3A5D9C
Tritanopia (blue-blind)
#326974
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #505b9d;
/* rgb */ color: rgb(80, 91, 157);
/* oklch */ color: oklch(49.3% 0.106 274.7);
Tailwind
colors: {
  custom: {
    50: '#8689ba',
    500: '#505b9d',
    950: '#000000',
  },
}
SCSS
$custom: #505b9d;
$custom-light: #8689ba;
$custom-dark: #000000;
JSON
{
  "hex": "#505b9d",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 157
  },
  "hsl": {
    "h": 231.429,
    "s": 32.489,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4934,
    "c": 0.10603,
    "h": 274.7
  },
  "luminance": 0.11622
}

Semantic roles & 50–950 ramp

primary
#505B9D
secondary
#B9B390
accent
#BA5FC9
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #505B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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