#505ED9#505ED9

#505ED9 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.1% C 0.187 H 273.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#505ED9
RGBrgb(80, 94, 217)
HSLhsl(234, 64%, 58%)
HSVhsv(234, 63%, 85%)
CMYKcmyk(63.1%, 56.7%, 0%, 14.9%)
CIE-LABlab(45.25, 32.56, -64.88)
CIE-LCHlch(45.25, 72.59, 296.65°)
OKLaboklab(54.08% 0.0114 -0.1865)
OKLCHoklch(54.08% 0.187 273.5)
XYZxyz(19.8312, 14.7189, 67.4282)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ED9 #D9CB50
analogous
#50A2D9 #505ED9 #8750D9
triadic
#505ED9 #D9505E #5ED950
tetradic
#505ED9 #D950A2 #D9CB50 #50D987
square
#505ED9 #D950A2 #D9CB50 #50D987
split-complementary
#505ED9 #D98750 #A2D950
monochromatic
#1F2B8F #2A3AC2 #505ED9 #828CE4 #B5BBEF

Accessibility & contrast

On white

5.32
#505ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#505ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ED9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ED9#FFFFFF#000000##FFFFFF
##505ED91.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505ed9;
/* rgb */ color: rgb(80, 94, 217);
/* oklch */ color: oklch(54.1% 0.187 273.5);
Tailwind
colors: {
  custom: {
    50: '#8f8be6',
    500: '#505ed9',
    950: '#000000',
  },
}
SCSS
$custom: #505ed9;
$custom-light: #8f8be6;
$custom-dark: #000000;
JSON
{
  "hex": "#505ed9",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 217
  },
  "hsl": {
    "h": 233.869,
    "s": 64.319,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54076,
    "c": 0.18689,
    "h": 273.5
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#505ED9
secondary
#DED8A7
accent
#D640E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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