#505EA5#505EA5

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

Color values

HEX#505EA5
RGBrgb(80, 94, 165)
HSLhsl(230, 35%, 48%)
HSVhsv(230, 52%, 65%)
CMYKcmyk(51.5%, 43%, 0%, 35.3%)
CIE-LABlab(41.89, 15.18, -40.07)
CIE-LCHlch(41.89, 42.85, 290.75°)
OKLaboklab(50.46% 0.0065 -0.1136)
OKLCHoklch(50.46% 0.114 273.3)
XYZxyz(14.1003, 12.4266, 37.2456)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EA5 #A59750
analogous
#5088A5 #505EA5 #6C50A5
triadic
#505EA5 #A5505E #5EA550
tetradic
#505EA5 #A55088 #A59750 #50A56C
square
#505EA5 #A55088 #A59750 #50A56C
split-complementary
#505EA5 #A56C50 #88A550
monochromatic
#282F53 #3C477C #505EA5 #7681BC #9FA7D0

Accessibility & contrast

On white

6.03
#505EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #505EA5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EA5#FFFFFF#000000##FFFFFF
##505EA51.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4167A8
Deuteranopia (green-blind)
#385FA3
Tritanopia (blue-blind)
#2C6D79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505ea5;
/* rgb */ color: rgb(80, 94, 165);
/* oklch */ color: oklch(50.5% 0.114 273.3);
Tailwind
colors: {
  custom: {
    50: '#878bc0',
    500: '#505ea5',
    950: '#000000',
  },
}
SCSS
$custom: #505ea5;
$custom-light: #878bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#505ea5",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 230.118,
    "s": 34.694,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.11381,
    "h": 273.3
  },
  "luminance": 0.12427
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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