#505A9A#505A9A

#505A9A is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.9% C 0.103 H 275.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#505A9A
RGBrgb(80, 90, 154)
HSLhsl(232, 32%, 46%)
HSVhsv(232, 48%, 60%)
CMYKcmyk(48.1%, 41.6%, 0%, 39.6%)
CIE-LABlab(40.16, 14.17, -36.25)
CIE-LCHlch(40.16, 38.92, 291.35°)
OKLaboklab(48.95% 0.0094 -0.1025)
OKLCHoklch(48.95% 0.103 275.2)
XYZxyz(12.7954, 11.3502, 32.0822)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A9A #9A9050
analogous
#507F9A #505A9A #6B509A
triadic
#505A9A #9A505A #5A9A50
tetradic
#505A9A #9A507F #9A9050 #509A6B
square
#505A9A #9A507F #9A9050 #509A6B
split-complementary
#505A9A #9A6B50 #7F9A50
monochromatic
#262B49 #3B4272 #505A9A #727BB6 #9AA0CA

Accessibility & contrast

On white

6.42
#505A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#505A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505A9A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A9A#FFFFFF#000000##FFFFFF
##505A9A1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629C
Deuteranopia (green-blind)
#3B5C99
Tritanopia (blue-blind)
#356772
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #505a9a;
/* rgb */ color: rgb(80, 90, 154);
/* oklch */ color: oklch(48.9% 0.103 275.2);
Tailwind
colors: {
  custom: {
    50: '#8588b8',
    500: '#505a9a',
    950: '#000000',
  },
}
SCSS
$custom: #505a9a;
$custom-light: #8588b8;
$custom-dark: #000000;
JSON
{
  "hex": "#505a9a",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 154
  },
  "hsl": {
    "h": 231.892,
    "s": 31.624,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48946,
    "c": 0.10291,
    "h": 275.2
  },
  "luminance": 0.11351
}

Semantic roles & 50–950 ramp

primary
#505A9A
secondary
#B7B28F
accent
#BA60C8
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #505A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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