#505DB5#505DB5

#505DB5 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.138 H 274.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#505DB5
RGBrgb(80, 93, 181)
HSLhsl(232, 41%, 51%)
HSVhsv(232, 56%, 71%)
CMYKcmyk(55.8%, 48.6%, 0%, 29%)
CIE-LABlab(42.57, 21.09, -48.41)
CIE-LCHlch(42.57, 52.80, 293.54°)
OKLaboklab(51.29% 0.01 -0.1381)
OKLCHoklch(51.29% 0.138 274.2)
XYZxyz(15.5604, 12.8693, 45.3712)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DB5 #B5A850
analogous
#508FB5 #505DB5 #7550B5
triadic
#505DB5 #B5505D #5DB550
tetradic
#505DB5 #B5508F #B5A850 #50B575
square
#505DB5 #B5508F #B5A850 #50B575
split-complementary
#505DB5 #B57550 #8FB550
monochromatic
#293061 #3B468C #505DB5 #7B85C7 #A6ADD9

Accessibility & contrast

On white

5.88
#505DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#505DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DB5
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DB5#FFFFFF#000000##FFFFFF
##505DB51.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3369B8
Deuteranopia (green-blind)
#2560B3
Tritanopia (blue-blind)
#197180
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505db5;
/* rgb */ color: rgb(80, 93, 181);
/* oklch */ color: oklch(51.3% 0.138 274.2);
Tailwind
colors: {
  custom: {
    50: '#898acc',
    500: '#505db5',
    950: '#000000',
  },
}
SCSS
$custom: #505db5;
$custom-light: #898acc;
$custom-dark: #000000;
JSON
{
  "hex": "#505db5",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 232.277,
    "s": 40.562,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51289,
    "c": 0.13847,
    "h": 274.2
  },
  "luminance": 0.1287
}

Semantic roles & 50–950 ramp

primary
#505DB5
secondary
#C7C19A
accent
#C157D0
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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