#505AC5#505AC5

#505AC5 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.165 H 275.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#505AC5
RGBrgb(80, 90, 197)
HSLhsl(235, 50%, 54%)
HSVhsv(235, 59%, 77%)
CMYKcmyk(59.4%, 54.3%, 0%, 22.7%)
CIE-LABlab(42.84, 28.33, -57.29)
CIE-LCHlch(42.84, 63.91, 296.31°)
OKLaboklab(51.83% 0.0145 -0.1643)
OKLCHoklch(51.83% 0.165 275)
XYZxyz(17.0392, 13.0477, 54.4331)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AC5 #C5BB50
analogous
#5095C5 #505AC5 #8150C5
triadic
#505AC5 #C5505A #5AC550
tetradic
#505AC5 #C55095 #C5BB50 #50C581
square
#505AC5 #C55095 #C5BB50 #50C581
split-complementary
#505AC5 #C58150 #95C550
monochromatic
#262D74 #363FA2 #505AC5 #7E85D4 #ACB1E3

Accessibility & contrast

On white

5.82
#505AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#505AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AC5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AC5#FFFFFF#000000##FFFFFF
##505AC51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC9
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505ac5;
/* rgb */ color: rgb(80, 90, 197);
/* oklch */ color: oklch(51.8% 0.165 275.0);
Tailwind
colors: {
  custom: {
    50: '#8c88d7',
    500: '#505ac5',
    950: '#000000',
  },
}
SCSS
$custom: #505ac5;
$custom-light: #8c88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#505ac5",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 197
  },
  "hsl": {
    "h": 234.872,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51828,
    "c": 0.16491,
    "h": 275
  },
  "luminance": 0.13049
}

Semantic roles & 50–950 ramp

primary
#505AC5
secondary
#D1CDA0
accent
#CE4EDA
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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