#505ED7#505ED7

#505ED7 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.9% C 0.184 H 273.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#505ED7
RGBrgb(80, 94, 215)
HSLhsl(234, 63%, 58%)
HSVhsv(234, 63%, 84%)
CMYKcmyk(62.8%, 56.3%, 0%, 15.7%)
CIE-LABlab(45.10, 31.89, -63.97)
CIE-LCHlch(45.10, 71.47, 296.50°)
OKLaboklab(53.92% 0.0113 -0.1839)
OKLCHoklch(53.92% 0.184 273.5)
XYZxyz(19.5726, 14.6155, 66.0664)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ED7 #D7C950
analogous
#50A1D7 #505ED7 #8650D7
triadic
#505ED7 #D7505E #5ED750
tetradic
#505ED7 #D750A1 #D7C950 #50D786
square
#505ED7 #D750A1 #D7C950 #50D786
split-complementary
#505ED7 #D78650 #A1D750
monochromatic
#202B8C #2B3BBE #505ED7 #828CE2 #B4BAEE

Accessibility & contrast

On white

5.35
#505ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#505ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ED7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ED7#FFFFFF#000000##FFFFFF
##505ED71.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0065D5
Tritanopia (blue-blind)
#007B91
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505ed7;
/* rgb */ color: rgb(80, 94, 215);
/* oklch */ color: oklch(53.9% 0.184 273.5);
Tailwind
colors: {
  custom: {
    50: '#8e8be4',
    500: '#505ed7',
    950: '#000000',
  },
}
SCSS
$custom: #505ed7;
$custom-light: #8e8be4;
$custom-dark: #000000;
JSON
{
  "hex": "#505ed7",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 215
  },
  "hsl": {
    "h": 233.778,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53923,
    "c": 0.18422,
    "h": 273.5
  },
  "luminance": 0.14617
}

Semantic roles & 50–950 ramp

primary
#505ED7
secondary
#DCD7A6
accent
#D542E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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