#505B9C#505B9C

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

Color values

HEX#505B9C
RGBrgb(80, 91, 156)
HSLhsl(231, 32%, 46%)
HSVhsv(231, 49%, 61%)
CMYKcmyk(48.7%, 41.7%, 0%, 38.8%)
CIE-LABlab(40.55, 14.17, -36.83)
CIE-LCHlch(40.55, 39.46, 291.05°)
OKLaboklab(49.28% 0.0085 -0.1042)
OKLCHoklch(49.28% 0.105 274.7)
XYZxyz(13.0482, 11.5872, 32.9950)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B9C #9C9150
analogous
#50819C #505B9C #6B509C
triadic
#505B9C #9C505B #5B9C50
tetradic
#505B9C #9C5081 #9C9150 #509C6B
square
#505B9C #9C5081 #9C9150 #509C6B
split-complementary
#505B9C #9C6B50 #819C50
monochromatic
#272C4B #3B4374 #505B9C #727CB7 #9BA2CC

Accessibility & contrast

On white

6.33
#505B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #505B9C
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505B9C#FFFFFF#000000##FFFFFF
##505B9C1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42639F
Deuteranopia (green-blind)
#3B5D9B
Tritanopia (blue-blind)
#336974
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #505b9c;
/* rgb */ color: rgb(80, 91, 156);
/* oklch */ color: oklch(49.3% 0.105 274.7);
Tailwind
colors: {
  custom: {
    50: '#8689b9',
    500: '#505b9c',
    950: '#000000',
  },
}
SCSS
$custom: #505b9c;
$custom-light: #8689b9;
$custom-dark: #000000;
JSON
{
  "hex": "#505b9c",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 156
  },
  "hsl": {
    "h": 231.316,
    "s": 32.203,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49279,
    "c": 0.10453,
    "h": 274.7
  },
  "luminance": 0.11588
}

Semantic roles & 50–950 ramp

primary
#505B9C
secondary
#B8B28F
accent
#B95FC8
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #505B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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