#505CCB#505CCB

#505CCB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.171 H 274.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#505CCB
RGBrgb(80, 92, 203)
HSLhsl(234, 54%, 55%)
HSVhsv(234, 61%, 80%)
CMYKcmyk(60.6%, 54.7%, 0%, 20.4%)
CIE-LABlab(43.76, 29.09, -59.27)
CIE-LCHlch(43.76, 66.02, 296.14°)
OKLaboklab(52.65% 0.0128 -0.1701)
OKLCHoklch(52.65% 0.171 274.3)
XYZxyz(17.9114, 13.6701, 58.1831)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CCB #CBBF50
analogous
#509ACB #505CCB #8150CB
triadic
#505CCB #CB505C #5CCB50
tetradic
#505CCB #CB509A #CBBF50 #50CB81
square
#505CCB #CB509A #CBBF50 #50CB81
split-complementary
#505CCB #CB8150 #9ACB50
monochromatic
#252D7C #333FAB #505CCB #7F88D9 #AEB4E7

Accessibility & contrast

On white

5.62
#505CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#505CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CCB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CCB#FFFFFF#000000##FFFFFF
##505CCB1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086DCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#00768A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505ccb;
/* rgb */ color: rgb(80, 92, 203);
/* oklch */ color: oklch(52.6% 0.171 274.3);
Tailwind
colors: {
  custom: {
    50: '#8c8adc',
    500: '#505ccb',
    950: '#000000',
  },
}
SCSS
$custom: #505ccb;
$custom-light: #8c8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#505ccb",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 234.146,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.17054,
    "h": 274.3
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#505CCB
secondary
#D5D0A2
accent
#CF4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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