#505AD8#505AD8

#505AD8 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.3% C 0.191 H 274.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#505AD8
RGBrgb(80, 90, 216)
HSLhsl(236, 64%, 58%)
HSVhsv(236, 63%, 85%)
CMYKcmyk(63%, 58.3%, 0%, 15.3%)
CIE-LABlab(44.20, 34.70, -66.01)
CIE-LCHlch(44.20, 74.58, 297.73°)
OKLaboklab(53.27% 0.0149 -0.1899)
OKLCHoklch(53.27% 0.191 274.5)
XYZxyz(19.3550, 13.9740, 66.6297)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AD8 #D8CE50
analogous
#509ED8 #505AD8 #8A50D8
triadic
#505AD8 #D8505A #5AD850
tetradic
#505AD8 #D8509E #D8CE50 #50D88A
square
#505AD8 #D8509E #D8CE50 #50D88A
split-complementary
#505AD8 #D88A50 #9ED850
monochromatic
#20288E #2B36C0 #505AD8 #8289E3 #B4B8EE

Accessibility & contrast

On white

5.53
#505AD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#505AD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AD8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AD8#FFFFFF#000000##FFFFFF
##505AD81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#0063D5
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ad8;
/* rgb */ color: rgb(80, 90, 216);
/* oklch */ color: oklch(53.3% 0.191 274.5);
Tailwind
colors: {
  custom: {
    50: '#8f88e5',
    500: '#505ad8',
    950: '#000000',
  },
}
SCSS
$custom: #505ad8;
$custom-light: #8f88e5;
$custom-dark: #000000;
JSON
{
  "hex": "#505ad8",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 216
  },
  "hsl": {
    "h": 235.588,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53272,
    "c": 0.1905,
    "h": 274.5
  },
  "luminance": 0.13976
}

Semantic roles & 50–950 ramp

primary
#505AD8
secondary
#DDD9A7
accent
#DA41E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505AD8

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

Preview Lab → · Contrast checker → · Palette generator →

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