#505AA5#505AA5

#505AA5 is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.6% C 0.119 H 275.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#505AA5
RGBrgb(80, 90, 165)
HSLhsl(233, 35%, 48%)
HSVhsv(233, 52%, 65%)
CMYKcmyk(51.5%, 45.5%, 0%, 35.3%)
CIE-LABlab(40.79, 17.72, -41.82)
CIE-LCHlch(40.79, 45.41, 292.96°)
OKLaboklab(49.63% 0.0113 -0.1188)
OKLCHoklch(49.63% 0.119 275.5)
XYZxyz(13.7538, 11.7336, 37.1301)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AA5 #A59B50
analogous
#5084A5 #505AA5 #7050A5
triadic
#505AA5 #A5505A #5AA550
tetradic
#505AA5 #A55084 #A59B50 #50A570
square
#505AA5 #A55084 #A59B50 #50A570
split-complementary
#505AA5 #A57050 #84A550
monochromatic
#282D53 #3C447C #505AA5 #767EBC #9FA5D0

Accessibility & contrast

On white

6.27
#505AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#505AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AA5
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AA5#FFFFFF#000000##FFFFFF
##505AA51.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A64A8
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#2C6A77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #505aa5;
/* rgb */ color: rgb(80, 90, 165);
/* oklch */ color: oklch(49.6% 0.119 275.5);
Tailwind
colors: {
  custom: {
    50: '#8788c0',
    500: '#505aa5',
    950: '#000000',
  },
}
SCSS
$custom: #505aa5;
$custom-light: #8788c0;
$custom-dark: #000000;
JSON
{
  "hex": "#505aa5",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 232.941,
    "s": 34.694,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49627,
    "c": 0.11932,
    "h": 275.5
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#505AA5
secondary
#BDB893
accent
#BE5DCB
background
#F8F8FB
surface
#F0EFF7
border
#CBCAD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #505AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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