#505BCB#505BCB

#505BCB is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.5% C 0.172 H 274.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#505BCB
RGBrgb(80, 91, 203)
HSLhsl(235, 54%, 55%)
HSVhsv(235, 61%, 80%)
CMYKcmyk(60.6%, 55.2%, 0%, 20.4%)
CIE-LABlab(43.50, 29.72, -59.68)
CIE-LCHlch(43.50, 66.67, 296.47°)
OKLaboklab(52.46% 0.0138 -0.1713)
OKLCHoklch(52.46% 0.172 274.6)
XYZxyz(17.8253, 13.4980, 58.1544)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BCB #CBC050
analogous
#5098CB #505BCB #8250CB
triadic
#505BCB #CB505B #5BCB50
tetradic
#505BCB #CB5098 #CBC050 #50CB82
square
#505BCB #CB5098 #CBC050 #50CB82
split-complementary
#505BCB #CB8250 #98CB50
monochromatic
#252D7C #333EAB #505BCB #7F87D9 #AEB3E7

Accessibility & contrast

On white

5.68
#505BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#505BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BCB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BCB#FFFFFF#000000##FFFFFF
##505BCB1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505bcb;
/* rgb */ color: rgb(80, 91, 203);
/* oklch */ color: oklch(52.5% 0.172 274.6);
Tailwind
colors: {
  custom: {
    50: '#8d89dc',
    500: '#505bcb',
    950: '#000000',
  },
}
SCSS
$custom: #505bcb;
$custom-light: #8d89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#505bcb",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 234.634,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52461,
    "c": 0.17182,
    "h": 274.6
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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