#505DA5#505DA5

#505DA5 is a mid, moderate blue. Relative luminance 0.123; OKLCH L 50.3% C 0.115 H 273.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#505DA5
RGBrgb(80, 93, 165)
HSLhsl(231, 35%, 48%)
HSVhsv(231, 52%, 65%)
CMYKcmyk(51.5%, 43.6%, 0%, 35.3%)
CIE-LABlab(41.61, 15.81, -40.51)
CIE-LCHlch(41.61, 43.48, 291.32°)
OKLaboklab(50.25% 0.0077 -0.1149)
OKLCHoklch(50.25% 0.115 273.8)
XYZxyz(14.0120, 12.2499, 37.2161)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DA5 #A59850
analogous
#5087A5 #505DA5 #6E50A5
triadic
#505DA5 #A5505D #5DA550
tetradic
#505DA5 #A55087 #A59850 #50A56E
square
#505DA5 #A55087 #A59850 #50A56E
split-complementary
#505DA5 #A56E50 #87A550
monochromatic
#282F53 #3C467C #505DA5 #7681BC #9FA7D0

Accessibility & contrast

On white

6.09
#505DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#505DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DA5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DA5#FFFFFF#000000##FFFFFF
##505DA51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F66A8
Deuteranopia (green-blind)
#375FA3
Tritanopia (blue-blind)
#2C6C79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #505da5;
/* rgb */ color: rgb(80, 93, 165);
/* oklch */ color: oklch(50.3% 0.115 273.8);
Tailwind
colors: {
  custom: {
    50: '#878ac0',
    500: '#505da5',
    950: '#000000',
  },
}
SCSS
$custom: #505da5;
$custom-light: #878ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#505da5",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 165
  },
  "hsl": {
    "h": 230.824,
    "s": 34.694,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.11518,
    "h": 273.8
  },
  "luminance": 0.12251
}

Semantic roles & 50–950 ramp

primary
#505DA5
secondary
#BDB793
accent
#BA5DCB
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #505DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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