#505AA4#505AA4

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

Color values

HEX#505AA4
RGBrgb(80, 90, 164)
HSLhsl(233, 34%, 48%)
HSVhsv(233, 51%, 64%)
CMYKcmyk(51.2%, 45.1%, 0%, 35.7%)
CIE-LABlab(40.73, 17.39, -41.32)
CIE-LCHlch(40.73, 44.83, 292.83°)
OKLaboklab(49.56% 0.0112 -0.1173)
OKLCHoklch(49.56% 0.118 275.4)
XYZxyz(13.6632, 11.6973, 36.6526)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AA4 #A49A50
analogous
#5084A4 #505AA4 #7050A4
triadic
#505AA4 #A4505A #5AA450
tetradic
#505AA4 #A45084 #A49A50 #50A470
square
#505AA4 #A45084 #A49A50 #50A470
split-complementary
#505AA4 #A47050 #84A450
monochromatic
#282D52 #3C437B #505AA4 #757EBC #9EA4D0

Accessibility & contrast

On white

6.29
#505AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#505AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AA4
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AA4#FFFFFF#000000##FFFFFF
##505AA41.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#2D6A77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #505aa4;
/* rgb */ color: rgb(80, 90, 164);
/* oklch */ color: oklch(49.6% 0.118 275.4);
Tailwind
colors: {
  custom: {
    50: '#8788bf',
    500: '#505aa4',
    950: '#000000',
  },
}
SCSS
$custom: #505aa4;
$custom-light: #8788bf;
$custom-dark: #000000;
JSON
{
  "hex": "#505aa4",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 232.857,
    "s": 34.426,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49563,
    "c": 0.11784,
    "h": 275.4
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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