#505DA8#505DA8

#505DA8 is a mid, moderate blue. Relative luminance 0.124; OKLCH L 50.4% C 0.120 H 273.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#505DA8
RGBrgb(80, 93, 168)
HSLhsl(231, 35%, 49%)
HSVhsv(231, 52%, 66%)
CMYKcmyk(52.4%, 44.6%, 0%, 34.1%)
CIE-LABlab(41.78, 16.79, -42.01)
CIE-LCHlch(41.78, 45.24, 291.79°)
OKLaboklab(50.44% 0.0082 -0.1193)
OKLCHoklch(50.44% 0.12 273.9)
XYZxyz(14.2882, 12.3604, 38.6711)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DA8 #A89B50
analogous
#5089A8 #505DA8 #6F50A8
triadic
#505DA8 #A8505D #5DA850
tetradic
#505DA8 #A85089 #A89B50 #50A86F
square
#505DA8 #A85089 #A89B50 #50A86F
split-complementary
#505DA8 #A86F50 #89A850
monochromatic
#292F55 #3C467F #505DA8 #7781BE #A0A8D2

Accessibility & contrast

On white

6.05
#505DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#505DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DA8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DA8#FFFFFF#000000##FFFFFF
##505DA81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AB
Deuteranopia (green-blind)
#345FA6
Tritanopia (blue-blind)
#296D7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505da8;
/* rgb */ color: rgb(80, 93, 168);
/* oklch */ color: oklch(50.4% 0.120 273.9);
Tailwind
colors: {
  custom: {
    50: '#878ac2',
    500: '#505da8',
    950: '#000000',
  },
}
SCSS
$custom: #505da8;
$custom-light: #878ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#505da8",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 231.136,
    "s": 35.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.1196,
    "h": 273.9
  },
  "luminance": 0.12361
}

Semantic roles & 50–950 ramp

primary
#505DA8
secondary
#BFB995
accent
#BB5CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #505DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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