#505ED2#505ED2

#505ED2 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.5% C 0.177 H 273.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#505ED2
RGBrgb(80, 94, 210)
HSLhsl(234, 59%, 57%)
HSVhsv(234, 62%, 82%)
CMYKcmyk(61.9%, 55.2%, 0%, 17.6%)
CIE-LABlab(44.75, 30.20, -61.68)
CIE-LCHlch(44.75, 68.68, 296.09°)
OKLaboklab(53.55% 0.0112 -0.1771)
OKLCHoklch(53.55% 0.178 273.6)
XYZxyz(18.9400, 14.3625, 62.7344)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ED2 #D2C450
analogous
#509FD2 #505ED2 #8350D2
triadic
#505ED2 #D2505E #5ED250
tetradic
#505ED2 #D2509F #D2C450 #50D283
square
#505ED2 #D2509F #D2C450 #50D283
split-complementary
#505ED2 #D28350 #9FD250
monochromatic
#222D85 #2F3DB6 #505ED2 #818BDF #B1B8EB

Accessibility & contrast

On white

5.42
#505ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#505ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ED2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ED2#FFFFFF#000000##FFFFFF
##505ED21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505ed2;
/* rgb */ color: rgb(80, 94, 210);
/* oklch */ color: oklch(53.5% 0.177 273.6);
Tailwind
colors: {
  custom: {
    50: '#8e8be1',
    500: '#505ed2',
    950: '#000000',
  },
}
SCSS
$custom: #505ed2;
$custom-light: #8e8be1;
$custom-dark: #000000;
JSON
{
  "hex": "#505ed2",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 210
  },
  "hsl": {
    "h": 233.538,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53546,
    "c": 0.1775,
    "h": 273.6
  },
  "luminance": 0.14364
}

Semantic roles & 50–950 ramp

primary
#505ED2
secondary
#D9D4A4
accent
#D146E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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