#505CC5#505CC5

#505CC5 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.162 H 274.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#505CC5
RGBrgb(80, 92, 197)
HSLhsl(234, 50%, 54%)
HSVhsv(234, 59%, 77%)
CMYKcmyk(59.4%, 53.3%, 0%, 22.7%)
CIE-LABlab(43.34, 27.07, -56.47)
CIE-LCHlch(43.34, 62.62, 295.61°)
OKLaboklab(52.21% 0.0125 -0.1618)
OKLCHoklch(52.21% 0.162 274.4)
XYZxyz(17.2102, 13.3897, 54.4900)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CC5 #C5B950
analogous
#5097C5 #505CC5 #7F50C5
triadic
#505CC5 #C5505C #5CC550
tetradic
#505CC5 #C55097 #C5B950 #50C57F
square
#505CC5 #C55097 #C5B950 #50C57F
split-complementary
#505CC5 #C57F50 #97C550
monochromatic
#262E74 #3641A2 #505CC5 #7E87D4 #ACB2E3

Accessibility & contrast

On white

5.71
#505CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#505CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CC5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CC5#FFFFFF#000000##FFFFFF
##505CC51.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6CC9
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505cc5;
/* rgb */ color: rgb(80, 92, 197);
/* oklch */ color: oklch(52.2% 0.162 274.4);
Tailwind
colors: {
  custom: {
    50: '#8b8ad7',
    500: '#505cc5',
    950: '#000000',
  },
}
SCSS
$custom: #505cc5;
$custom-light: #8b8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#505cc5",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 233.846,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5221,
    "c": 0.16231,
    "h": 274.4
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#505CC5
secondary
#D1CCA0
accent
#CB4EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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