#505BC5#505BC5

#505BC5 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.164 H 274.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#505BC5
RGBrgb(80, 91, 197)
HSLhsl(234, 50%, 54%)
HSVhsv(234, 59%, 77%)
CMYKcmyk(59.4%, 53.8%, 0%, 22.7%)
CIE-LABlab(43.09, 27.70, -56.88)
CIE-LCHlch(43.09, 63.27, 295.97°)
OKLaboklab(52.02% 0.0135 -0.163)
OKLCHoklch(52.02% 0.164 274.7)
XYZxyz(17.1241, 13.2176, 54.4614)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BC5 #C5BA50
analogous
#5096C5 #505BC5 #8050C5
triadic
#505BC5 #C5505B #5BC550
tetradic
#505BC5 #C55096 #C5BA50 #50C580
square
#505BC5 #C55096 #C5BA50 #50C580
split-complementary
#505BC5 #C58050 #96C550
monochromatic
#262E74 #3640A2 #505BC5 #7E86D4 #ACB1E3

Accessibility & contrast

On white

5.76
#505BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#505BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BC5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BC5#FFFFFF#000000##FFFFFF
##505BC51.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166BC9
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505bc5;
/* rgb */ color: rgb(80, 91, 197);
/* oklch */ color: oklch(52.0% 0.164 274.7);
Tailwind
colors: {
  custom: {
    50: '#8c89d7',
    500: '#505bc5',
    950: '#000000',
  },
}
SCSS
$custom: #505bc5;
$custom-light: #8c89d7;
$custom-dark: #000000;
JSON
{
  "hex": "#505bc5",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 197
  },
  "hsl": {
    "h": 234.359,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.16361,
    "h": 274.7
  },
  "luminance": 0.13219
}

Semantic roles & 50–950 ramp

primary
#505BC5
secondary
#D1CDA0
accent
#CD4EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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