#505CC8#505CC8

#505CC8 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.4% C 0.166 H 274.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#505CC8
RGBrgb(80, 92, 200)
HSLhsl(234, 52%, 55%)
HSVhsv(234, 60%, 78%)
CMYKcmyk(60%, 54%, 0%, 21.6%)
CIE-LABlab(43.55, 28.08, -57.87)
CIE-LCHlch(43.55, 64.33, 295.88°)
OKLaboklab(52.43% 0.0127 -0.166)
OKLCHoklch(52.43% 0.166 274.4)
XYZxyz(17.5573, 13.5285, 56.3184)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CC8 #C8BC50
analogous
#5098C8 #505CC8 #8050C8
triadic
#505CC8 #C8505C #5CC850
tetradic
#505CC8 #C85098 #C8BC50 #50C880
square
#505CC8 #C85098 #C8BC50 #50C880
split-complementary
#505CC8 #C88050 #98C850
monochromatic
#262E78 #3440A6 #505CC8 #7F87D7 #ADB3E5

Accessibility & contrast

On white

5.67
#505CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#505CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CC8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CC8#FFFFFF#000000##FFFFFF
##505CC81.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136CCC
Deuteranopia (green-blind)
#0062C6
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505cc8;
/* rgb */ color: rgb(80, 92, 200);
/* oklch */ color: oklch(52.4% 0.166 274.4);
Tailwind
colors: {
  custom: {
    50: '#8c8ad9',
    500: '#505cc8',
    950: '#000000',
  },
}
SCSS
$custom: #505cc8;
$custom-light: #8c8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#505cc8",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 234,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52428,
    "c": 0.16644,
    "h": 274.4
  },
  "luminance": 0.1353
}

Semantic roles & 50–950 ramp

primary
#505CC8
secondary
#D3CEA1
accent
#CD4CDC
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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