#505EA8#505EA8

#505EA8 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.7% C 0.118 H 273.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#505EA8
RGBrgb(80, 94, 168)
HSLhsl(230, 35%, 49%)
HSVhsv(230, 52%, 66%)
CMYKcmyk(52.4%, 44%, 0%, 34.1%)
CIE-LABlab(42.06, 16.16, -41.57)
CIE-LCHlch(42.06, 44.60, 291.24°)
OKLaboklab(50.65% 0.007 -0.118)
OKLCHoklch(50.65% 0.118 273.4)
XYZxyz(14.3766, 12.5371, 38.7005)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EA8 #A89A50
analogous
#508AA8 #505EA8 #6E50A8
triadic
#505EA8 #A8505E #5EA850
tetradic
#505EA8 #A8508A #A89A50 #50A86E
square
#505EA8 #A8508A #A89A50 #50A86E
split-complementary
#505EA8 #A86E50 #8AA850
monochromatic
#293055 #3C477F #505EA8 #7782BE #A0A8D2

Accessibility & contrast

On white

5.99
#505EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#505EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EA8
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EA8#FFFFFF#000000##FFFFFF
##505EA81.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AB
Deuteranopia (green-blind)
#3660A6
Tritanopia (blue-blind)
#296E7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505ea8;
/* rgb */ color: rgb(80, 94, 168);
/* oklch */ color: oklch(50.7% 0.118 273.4);
Tailwind
colors: {
  custom: {
    50: '#878bc2',
    500: '#505ea8',
    950: '#000000',
  },
}
SCSS
$custom: #505ea8;
$custom-light: #878bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#505ea8",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 230.455,
    "s": 35.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50651,
    "c": 0.11824,
    "h": 273.4
  },
  "luminance": 0.12538
}

Semantic roles & 50–950 ramp

primary
#505EA8
secondary
#BFB895
accent
#BA5CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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