#505CB8#505CB8

#505CB8 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.3% C 0.144 H 274.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#505CB8
RGBrgb(80, 92, 184)
HSLhsl(233, 42%, 52%)
HSVhsv(233, 57%, 72%)
CMYKcmyk(56.5%, 50%, 0%, 27.8%)
CIE-LABlab(42.49, 22.72, -50.29)
CIE-LCHlch(42.49, 55.18, 294.31°)
OKLaboklab(51.29% 0.0115 -0.1436)
OKLCHoklch(51.29% 0.144 274.6)
XYZxyz(15.7843, 12.8193, 46.9807)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CB8 #B8AC50
analogous
#5090B8 #505CB8 #7850B8
triadic
#505CB8 #B8505C #5CB850
tetradic
#505CB8 #B85090 #B8AC50 #50B878
square
#505CB8 #B85090 #B8AC50 #50B878
split-complementary
#505CB8 #B87850 #90B850
monochromatic
#293065 #3B4490 #505CB8 #7C85CA #A7ADDB

Accessibility & contrast

On white

5.89
#505CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#505CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CB8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CB8#FFFFFF#000000##FFFFFF
##505CB81.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#1D60B6
Tritanopia (blue-blind)
#147181
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505cb8;
/* rgb */ color: rgb(80, 92, 184);
/* oklch */ color: oklch(51.3% 0.144 274.6);
Tailwind
colors: {
  custom: {
    50: '#898ace',
    500: '#505cb8',
    950: '#000000',
  },
}
SCSS
$custom: #505cb8;
$custom-light: #898ace;
$custom-dark: #000000;
JSON
{
  "hex": "#505cb8",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 233.077,
    "s": 42.276,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.1441,
    "h": 274.6
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#505CB8
secondary
#C9C39B
accent
#C456D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #505CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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