#505ED5#505ED5

#505ED5 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.182 H 273.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#505ED5
RGBrgb(80, 94, 213)
HSLhsl(234, 61%, 57%)
HSVhsv(234, 62%, 84%)
CMYKcmyk(62.4%, 55.9%, 0%, 16.5%)
CIE-LABlab(44.96, 31.21, -63.06)
CIE-LCHlch(44.96, 70.36, 296.33°)
OKLaboklab(53.77% 0.0113 -0.1812)
OKLCHoklch(53.77% 0.182 273.6)
XYZxyz(19.3172, 14.5134, 64.7213)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ED5 #D5C750
analogous
#50A1D5 #505ED5 #8450D5
triadic
#505ED5 #D5505E #5ED550
tetradic
#505ED5 #D550A1 #D5C750 #50D584
square
#505ED5 #D550A1 #D5C750 #50D584
split-complementary
#505ED5 #D58450 #A1D550
monochromatic
#212C8A #2D3CBB #505ED5 #818BE1 #B3B9ED

Accessibility & contrast

On white

5.38
#505ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#505ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ED5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ED5#FFFFFF#000000##FFFFFF
##505ED51.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#0065D3
Tritanopia (blue-blind)
#007A90
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505ed5;
/* rgb */ color: rgb(80, 94, 213);
/* oklch */ color: oklch(53.8% 0.182 273.6);
Tailwind
colors: {
  custom: {
    50: '#8e8be3',
    500: '#505ed5',
    950: '#000000',
  },
}
SCSS
$custom: #505ed5;
$custom-light: #8e8be3;
$custom-dark: #000000;
JSON
{
  "hex": "#505ed5",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 213
  },
  "hsl": {
    "h": 233.684,
    "s": 61.29,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53772,
    "c": 0.18154,
    "h": 273.6
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#505ED5
secondary
#DBD6A6
accent
#D343E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #505ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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