#505CC4#505CC4

#505CC4 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.1% C 0.161 H 274.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#505CC4
RGBrgb(80, 92, 196)
HSLhsl(234, 50%, 54%)
HSVhsv(234, 59%, 77%)
CMYKcmyk(59.2%, 53.1%, 0%, 23.1%)
CIE-LABlab(43.28, 26.74, -56.00)
CIE-LCHlch(43.28, 62.05, 295.52°)
OKLaboklab(52.14% 0.0124 -0.1604)
OKLCHoklch(52.14% 0.161 274.4)
XYZxyz(17.0960, 13.3440, 53.8886)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CC4 #C4B850
analogous
#5096C4 #505CC4 #7E50C4
triadic
#505CC4 #C4505C #5CC450
tetradic
#505CC4 #C45096 #C4B850 #50C47E
square
#505CC4 #C45096 #C4B850 #50C47E
split-complementary
#505CC4 #C47E50 #96C450
monochromatic
#272F73 #3641A1 #505CC4 #7E87D3 #ACB1E3

Accessibility & contrast

On white

5.72
#505CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#505CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CC4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CC4#FFFFFF#000000##FFFFFF
##505CC41.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6BC8
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505cc4;
/* rgb */ color: rgb(80, 92, 196);
/* oklch */ color: oklch(52.1% 0.161 274.4);
Tailwind
colors: {
  custom: {
    50: '#8b8ad6',
    500: '#505cc4',
    950: '#000000',
  },
}
SCSS
$custom: #505cc4;
$custom-light: #8b8ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#505cc4",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 196
  },
  "hsl": {
    "h": 233.793,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.16092,
    "h": 274.4
  },
  "luminance": 0.13345
}

Semantic roles & 50–950 ramp

primary
#505CC4
secondary
#D1CB9F
accent
#CB4FD9
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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