#505BB8#505BB8

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

Color values

HEX#505BB8
RGBrgb(80, 91, 184)
HSLhsl(234, 42%, 52%)
HSVhsv(234, 57%, 72%)
CMYKcmyk(56.5%, 50.5%, 0%, 27.8%)
CIE-LABlab(42.23, 23.35, -50.71)
CIE-LCHlch(42.23, 55.83, 294.73°)
OKLaboklab(51.09% 0.0126 -0.1449)
OKLCHoklch(51.09% 0.145 275)
XYZxyz(15.6983, 12.6472, 46.9520)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB8 #B8AD50
analogous
#508FB8 #505BB8 #7950B8
triadic
#505BB8 #B8505B #5BB850
tetradic
#505BB8 #B8508F #B8AD50 #50B879
square
#505BB8 #B8508F #B8AD50 #50B879
split-complementary
#505BB8 #B87950 #8FB850
monochromatic
#292F65 #3B4490 #505BB8 #7C84CA #A7ADDB

Accessibility & contrast

On white

5.95
#505BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#505BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB8#FFFFFF#000000##FFFFFF
##505BB81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BB
Deuteranopia (green-blind)
#1A5FB6
Tritanopia (blue-blind)
#147081
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505bb8;
/* rgb */ color: rgb(80, 91, 184);
/* oklch */ color: oklch(51.1% 0.145 275.0);
Tailwind
colors: {
  custom: {
    50: '#8989ce',
    500: '#505bb8',
    950: '#000000',
  },
}
SCSS
$custom: #505bb8;
$custom-light: #8989ce;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb8",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 233.654,
    "s": 42.276,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51094,
    "c": 0.14543,
    "h": 275
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#505BB8
secondary
#C9C49B
accent
#C556D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #505BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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