#505BC4#505BC4

#505BC4 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.9% C 0.162 H 274.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#505BC4
RGBrgb(80, 91, 196)
HSLhsl(234, 50%, 54%)
HSVhsv(234, 59%, 77%)
CMYKcmyk(59.2%, 53.6%, 0%, 23.1%)
CIE-LABlab(43.02, 27.37, -56.41)
CIE-LCHlch(43.02, 62.70, 295.88°)
OKLaboklab(51.94% 0.0135 -0.1617)
OKLCHoklch(51.94% 0.162 274.8)
XYZxyz(17.0099, 13.1719, 53.8599)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BC4 #C4B950
analogous
#5095C4 #505BC4 #7F50C4
triadic
#505BC4 #C4505B #5BC450
tetradic
#505BC4 #C45095 #C4B950 #50C47F
square
#505BC4 #C45095 #C4B950 #50C47F
split-complementary
#505BC4 #C47F50 #95C450
monochromatic
#272E73 #3640A1 #505BC4 #7E86D3 #ACB1E3

Accessibility & contrast

On white

5.78
#505BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#505BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BC4
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BC4#FFFFFF#000000##FFFFFF
##505BC41.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186BC8
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505bc4;
/* rgb */ color: rgb(80, 91, 196);
/* oklch */ color: oklch(51.9% 0.162 274.8);
Tailwind
colors: {
  custom: {
    50: '#8b89d7',
    500: '#505bc4',
    950: '#000000',
  },
}
SCSS
$custom: #505bc4;
$custom-light: #8b89d7;
$custom-dark: #000000;
JSON
{
  "hex": "#505bc4",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 196
  },
  "hsl": {
    "h": 234.31,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51945,
    "c": 0.16223,
    "h": 274.8
  },
  "luminance": 0.13173
}

Semantic roles & 50–950 ramp

primary
#505BC4
secondary
#D1CC9F
accent
#CC4FD9
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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