#505DB2#505DB2

#505DB2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.134 H 274.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#505DB2
RGBrgb(80, 93, 178)
HSLhsl(232, 39%, 51%)
HSVhsv(232, 55%, 70%)
CMYKcmyk(55.1%, 47.8%, 0%, 30.2%)
CIE-LABlab(42.38, 20.09, -46.95)
CIE-LCHlch(42.38, 51.06, 293.17°)
OKLaboklab(51.09% 0.0097 -0.1338)
OKLCHoklch(51.09% 0.134 274.1)
XYZxyz(15.2559, 12.7475, 43.7674)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DB2 #B2A550
analogous
#508EB2 #505DB2 #7450B2
triadic
#505DB2 #B2505D #5DB250
tetradic
#505DB2 #B2508E #B2A550 #50B274
square
#505DB2 #B2508E #B2A550 #50B274
split-complementary
#505DB2 #B27450 #8EB250
monochromatic
#29305E #3C4689 #505DB2 #7A84C5 #A5ACD7

Accessibility & contrast

On white

5.92
#505DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#505DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DB2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DB2#FFFFFF#000000##FFFFFF
##505DB21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#2960B0
Tritanopia (blue-blind)
#1E707F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505db2;
/* rgb */ color: rgb(80, 93, 178);
/* oklch */ color: oklch(51.1% 0.134 274.1);
Tailwind
colors: {
  custom: {
    50: '#888ac9',
    500: '#505db2',
    950: '#000000',
  },
}
SCSS
$custom: #505db2;
$custom-light: #888ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#505db2",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 232.041,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51089,
    "c": 0.13416,
    "h": 274.1
  },
  "luminance": 0.12749
}

Semantic roles & 50–950 ramp

primary
#505DB2
secondary
#C5BF99
accent
#BF59CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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