#505C8A#505C8A

#505C8A is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.5% C 0.076 H 272.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#505C8A
RGBrgb(80, 92, 138)
HSLhsl(228, 27%, 43%)
HSVhsv(228, 42%, 54%)
CMYKcmyk(42%, 33.3%, 0%, 45.9%)
CIE-LABlab(39.91, 7.90, -27.02)
CIE-LCHlch(39.91, 28.16, 286.30°)
OKLaboklab(48.48% 0.0029 -0.0756)
OKLCHoklch(48.48% 0.076 272.2)
XYZxyz(11.7215, 11.1942, 25.5829)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505C8A #8A7E50
analogous
#50798A #505C8A #61508A
triadic
#505C8A #8A505C #5C8A50
tetradic
#505C8A #8A5079 #8A7E50 #508A61
square
#505C8A #8A5079 #8A7E50 #508A61
split-complementary
#505C8A #8A6150 #798A50
monochromatic
#23283D #3A4263 #505C8A #6D7AAA #949DC1

Accessibility & contrast

On white

6.48
#505C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#505C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505C8A
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505C8A#FFFFFF#000000##FFFFFF
##505C8A1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C618C
Deuteranopia (green-blind)
#475C89
Tritanopia (blue-blind)
#3D656D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #505c8a;
/* rgb */ color: rgb(80, 92, 138);
/* oklch */ color: oklch(48.5% 0.076 272.2);
Tailwind
colors: {
  custom: {
    50: '#848aac',
    500: '#505c8a',
    950: '#000000',
  },
}
SCSS
$custom: #505c8a;
$custom-light: #848aac;
$custom-dark: #000000;
JSON
{
  "hex": "#505c8a",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 227.586,
    "s": 26.606,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48477,
    "c": 0.07569,
    "h": 272.2
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#505C8A
secondary
#AEA688
accent
#AF65C3
background
#F8F8FA
surface
#EFF0F4
border
#CACBCE
text
#0B0B10
muted
#7C7C7F

Preview Lab

Preview with #505C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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