#505BB7#505BB7

#505BB7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.144 H 275.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#505BB7
RGBrgb(80, 91, 183)
HSLhsl(234, 42%, 52%)
HSVhsv(234, 56%, 72%)
CMYKcmyk(56.3%, 50.3%, 0%, 28.2%)
CIE-LABlab(42.16, 23.02, -50.23)
CIE-LCHlch(42.16, 55.25, 294.62°)
OKLaboklab(51.03% 0.0125 -0.1435)
OKLCHoklch(51.03% 0.144 275)
XYZxyz(15.5938, 12.6054, 46.4019)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB7 #B7AC50
analogous
#508FB7 #505BB7 #7950B7
triadic
#505BB7 #B7505B #5BB750
tetradic
#505BB7 #B7508F #B7AC50 #50B779
square
#505BB7 #B7508F #B7AC50 #50B779
split-complementary
#505BB7 #B77950 #8FB750
monochromatic
#292F64 #3B448F #505BB7 #7B84C9 #A7ACDB

Accessibility & contrast

On white

5.96
#505BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#505BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB7#FFFFFF#000000##FFFFFF
##505BB71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BA
Deuteranopia (green-blind)
#1C5FB5
Tritanopia (blue-blind)
#167080
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505bb7;
/* rgb */ color: rgb(80, 91, 183);
/* oklch */ color: oklch(51.0% 0.144 275.0);
Tailwind
colors: {
  custom: {
    50: '#8989cd',
    500: '#505bb7',
    950: '#000000',
  },
}
SCSS
$custom: #505bb7;
$custom-light: #8989cd;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb7",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 233.592,
    "s": 41.7,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.14401,
    "h": 275
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#505BB7
secondary
#C8C39B
accent
#C456D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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