#505DB7#505DB7

#505DB7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.141 H 274.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#505DB7
RGBrgb(80, 93, 183)
HSLhsl(232, 42%, 52%)
HSVhsv(232, 56%, 72%)
CMYKcmyk(56.3%, 49.2%, 0%, 28.2%)
CIE-LABlab(42.69, 21.75, -49.38)
CIE-LCHlch(42.69, 53.96, 293.78°)
OKLaboklab(51.42% 0.0103 -0.141)
OKLCHoklch(51.42% 0.141 274.2)
XYZxyz(15.7671, 12.9520, 46.4597)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DB7 #B7AA50
analogous
#5091B7 #505DB7 #7750B7
triadic
#505DB7 #B7505D #5DB750
tetradic
#505DB7 #B75091 #B7AA50 #50B777
square
#505DB7 #B75091 #B7AA50 #50B777
split-complementary
#505DB7 #B77750 #91B750
monochromatic
#293064 #3B458F #505DB7 #7B85C9 #A7ADDB

Accessibility & contrast

On white

5.85
#505DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#505DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DB7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DB7#FFFFFF#000000##FFFFFF
##505DB71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3169BA
Deuteranopia (green-blind)
#2261B5
Tritanopia (blue-blind)
#157181
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505db7;
/* rgb */ color: rgb(80, 93, 183);
/* oklch */ color: oklch(51.4% 0.141 274.2);
Tailwind
colors: {
  custom: {
    50: '#898acd',
    500: '#505db7',
    950: '#000000',
  },
}
SCSS
$custom: #505db7;
$custom-light: #898acd;
$custom-dark: #000000;
JSON
{
  "hex": "#505db7",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 232.427,
    "s": 41.7,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51424,
    "c": 0.14133,
    "h": 274.2
  },
  "luminance": 0.12953
}

Semantic roles & 50–950 ramp

primary
#505DB7
secondary
#C8C29B
accent
#C256D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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