#505ED8#505ED8

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

Color values

HEX#505ED8
RGBrgb(80, 94, 216)
HSLhsl(234, 64%, 58%)
HSVhsv(234, 63%, 85%)
CMYKcmyk(63%, 56.5%, 0%, 15.3%)
CIE-LABlab(45.17, 32.22, -64.42)
CIE-LCHlch(45.17, 72.03, 296.57°)
OKLaboklab(54% 0.0114 -0.1852)
OKLCHoklch(54% 0.186 273.5)
XYZxyz(19.7015, 14.6671, 66.7452)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ED8 #D8CA50
analogous
#50A2D8 #505ED8 #8650D8
triadic
#505ED8 #D8505E #5ED850
tetradic
#505ED8 #D850A2 #D8CA50 #50D886
square
#505ED8 #D850A2 #D8CA50 #50D886
split-complementary
#505ED8 #D88650 #A2D850
monochromatic
#202B8E #2B3AC0 #505ED8 #828CE3 #B4BAEE

Accessibility & contrast

On white

5.34
#505ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#505ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ED8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ED8#FFFFFF#000000##FFFFFF
##505ED81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#0065D6
Tritanopia (blue-blind)
#007B92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505ed8;
/* rgb */ color: rgb(80, 94, 216);
/* oklch */ color: oklch(54.0% 0.186 273.5);
Tailwind
colors: {
  custom: {
    50: '#8f8be5',
    500: '#505ed8',
    950: '#000000',
  },
}
SCSS
$custom: #505ed8;
$custom-light: #8f8be5;
$custom-dark: #000000;
JSON
{
  "hex": "#505ed8",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 216
  },
  "hsl": {
    "h": 233.824,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53999,
    "c": 0.18555,
    "h": 273.5
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#505ED8
secondary
#DDD7A7
accent
#D641E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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