#505CA4#505CA4

#505CA4 is a mid, moderate blue. Relative luminance 0.120; OKLCH L 50.0% C 0.115 H 274.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#505CA4
RGBrgb(80, 92, 164)
HSLhsl(231, 34%, 48%)
HSVhsv(231, 51%, 64%)
CMYKcmyk(51.2%, 43.9%, 0%, 35.7%)
CIE-LABlab(41.28, 16.12, -40.44)
CIE-LCHlch(41.28, 43.54, 291.73°)
OKLaboklab(49.98% 0.0087 -0.1147)
OKLCHoklch(49.98% 0.115 274.4)
XYZxyz(13.8341, 12.0392, 36.7096)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CA4 #A49850
analogous
#5086A4 #505CA4 #6E50A4
triadic
#505CA4 #A4505C #5CA450
tetradic
#505CA4 #A45086 #A49850 #50A46E
square
#505CA4 #A45086 #A49850 #50A46E
split-complementary
#505CA4 #A46E50 #86A450
monochromatic
#282E52 #3C457B #505CA4 #757FBC #9EA6D0

Accessibility & contrast

On white

6.16
#505CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#505CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CA4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CA4#FFFFFF#000000##FFFFFF
##505CA41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A7
Deuteranopia (green-blind)
#365EA2
Tritanopia (blue-blind)
#2D6B78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #505ca4;
/* rgb */ color: rgb(80, 92, 164);
/* oklch */ color: oklch(50.0% 0.115 274.4);
Tailwind
colors: {
  custom: {
    50: '#8789bf',
    500: '#505ca4',
    950: '#000000',
  },
}
SCSS
$custom: #505ca4;
$custom-light: #8789bf;
$custom-dark: #000000;
JSON
{
  "hex": "#505ca4",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 231.429,
    "s": 34.426,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49981,
    "c": 0.11507,
    "h": 274.4
  },
  "luminance": 0.1204
}

Semantic roles & 50–950 ramp

primary
#505CA4
secondary
#BDB793
accent
#BB5DCB
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #505CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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