#505AD7#505AD7

#505AD7 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.2% C 0.189 H 274.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#505AD7
RGBrgb(80, 90, 215)
HSLhsl(236, 63%, 58%)
HSVhsv(236, 63%, 84%)
CMYKcmyk(62.8%, 58.1%, 0%, 15.7%)
CIE-LABlab(44.12, 34.36, -65.56)
CIE-LCHlch(44.12, 74.02, 297.66°)
OKLaboklab(53.19% 0.0149 -0.1886)
OKLCHoklch(53.19% 0.189 274.5)
XYZxyz(19.2261, 13.9225, 65.9509)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AD7 #D7CD50
analogous
#509DD7 #505AD7 #8A50D7
triadic
#505AD7 #D7505A #5AD750
tetradic
#505AD7 #D7509D #D7CD50 #50D78A
square
#505AD7 #D7509D #D7CD50 #50D78A
split-complementary
#505AD7 #D78A50 #9DD750
monochromatic
#20288C #2B36BE #505AD7 #8289E2 #B4B8EE

Accessibility & contrast

On white

5.55
#505AD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#505AD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AD7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AD7#FFFFFF#000000##FFFFFF
##505AD71.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#007890
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ad7;
/* rgb */ color: rgb(80, 90, 215);
/* oklch */ color: oklch(53.2% 0.189 274.5);
Tailwind
colors: {
  custom: {
    50: '#8f88e4',
    500: '#505ad7',
    950: '#000000',
  },
}
SCSS
$custom: #505ad7;
$custom-light: #8f88e4;
$custom-dark: #000000;
JSON
{
  "hex": "#505ad7",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 215
  },
  "hsl": {
    "h": 235.556,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.18918,
    "h": 274.5
  },
  "luminance": 0.13924
}

Semantic roles & 50–950 ramp

primary
#505AD7
secondary
#DCD8A6
accent
#DA42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505AD7

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

Preview Lab → · Contrast checker → · Palette generator →

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