#505EA6#505EA6

#505EA6 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.5% C 0.115 H 273.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#505EA6
RGBrgb(80, 94, 166)
HSLhsl(230, 35%, 48%)
HSVhsv(230, 52%, 65%)
CMYKcmyk(51.8%, 43.4%, 0%, 34.9%)
CIE-LABlab(41.94, 15.50, -40.57)
CIE-LCHlch(41.94, 43.43, 290.91°)
OKLaboklab(50.53% 0.0067 -0.1151)
OKLCHoklch(50.53% 0.115 273.3)
XYZxyz(14.1917, 12.4632, 37.7268)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EA6 #A69850
analogous
#5089A6 #505EA6 #6D50A6
triadic
#505EA6 #A6505E #5EA650
tetradic
#505EA6 #A65089 #A69850 #50A66D
square
#505EA6 #A65089 #A69850 #50A66D
split-complementary
#505EA6 #A66D50 #89A650
monochromatic
#282F53 #3C477D #505EA6 #7682BD #9FA8D1

Accessibility & contrast

On white

6.01
#505EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#505EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EA6
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EA6#FFFFFF#000000##FFFFFF
##505EA61.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4067A9
Deuteranopia (green-blind)
#3760A4
Tritanopia (blue-blind)
#2B6D7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505ea6;
/* rgb */ color: rgb(80, 94, 166);
/* oklch */ color: oklch(50.5% 0.115 273.3);
Tailwind
colors: {
  custom: {
    50: '#878bc1',
    500: '#505ea6',
    950: '#000000',
  },
}
SCSS
$custom: #505ea6;
$custom-light: #878bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#505ea6",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 230.233,
    "s": 34.959,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50526,
    "c": 0.11529,
    "h": 273.3
  },
  "luminance": 0.12464
}

Semantic roles & 50–950 ramp

primary
#505EA6
secondary
#BEB794
accent
#B95DCB
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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