#505EC5#505EC5

#505EC5 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.160 H 273.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#505EC5
RGBrgb(80, 94, 197)
HSLhsl(233, 50%, 54%)
HSVhsv(233, 59%, 77%)
CMYKcmyk(59.4%, 52.3%, 0%, 22.7%)
CIE-LABlab(43.86, 25.82, -55.64)
CIE-LCHlch(43.86, 61.34, 294.89°)
OKLaboklab(52.6% 0.0105 -0.1594)
OKLCHoklch(52.6% 0.16 273.8)
XYZxyz(17.3857, 13.7408, 54.5486)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EC5 #C5B750
analogous
#5098C5 #505EC5 #7D50C5
triadic
#505EC5 #C5505E #5EC550
tetradic
#505EC5 #C55098 #C5B750 #50C57D
square
#505EC5 #C55098 #C5B750 #50C57D
split-complementary
#505EC5 #C57D50 #98C550
monochromatic
#263074 #3643A2 #505EC5 #7E88D4 #ACB3E3

Accessibility & contrast

On white

5.60
#505EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#505EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EC5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EC5#FFFFFF#000000##FFFFFF
##505EC51.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226DC9
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ec5;
/* rgb */ color: rgb(80, 94, 197);
/* oklch */ color: oklch(52.6% 0.160 273.8);
Tailwind
colors: {
  custom: {
    50: '#8b8bd7',
    500: '#505ec5',
    950: '#000000',
  },
}
SCSS
$custom: #505ec5;
$custom-light: #8b8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#505ec5",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 232.821,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52596,
    "c": 0.15971,
    "h": 273.8
  },
  "luminance": 0.13742
}

Semantic roles & 50–950 ramp

primary
#505EC5
secondary
#D1CBA0
accent
#C94EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #505EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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