#505BCA#505BCA

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

Color values

HEX#505BCA
RGBrgb(80, 91, 202)
HSLhsl(235, 54%, 55%)
HSVhsv(235, 60%, 79%)
CMYKcmyk(60.4%, 55%, 0%, 20.8%)
CIE-LABlab(43.43, 29.38, -59.21)
CIE-LCHlch(43.43, 66.10, 296.39°)
OKLaboklab(52.39% 0.0137 -0.1699)
OKLCHoklch(52.39% 0.17 274.6)
XYZxyz(17.7065, 13.4505, 57.5288)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BCA #CABF50
analogous
#5098CA #505BCA #8250CA
triadic
#505BCA #CA505B #5BCA50
tetradic
#505BCA #CA5098 #CABF50 #50CA82
square
#505BCA #CA5098 #CABF50 #50CA82
split-complementary
#505BCA #CA8250 #98CA50
monochromatic
#252D7A #333EA9 #505BCA #7F87D8 #AEB3E6

Accessibility & contrast

On white

5.69
#505BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#505BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BCA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BCA#FFFFFF#000000##FFFFFF
##505BCA1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046CCE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505bca;
/* rgb */ color: rgb(80, 91, 202);
/* oklch */ color: oklch(52.4% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#8c89db',
    500: '#505bca',
    950: '#000000',
  },
}
SCSS
$custom: #505bca;
$custom-light: #8c89db;
$custom-dark: #000000;
JSON
{
  "hex": "#505bca",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 234.59,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.52386,
    "c": 0.17046,
    "h": 274.6
  },
  "luminance": 0.13452
}

Semantic roles & 50–950 ramp

primary
#505BCA
secondary
#D4D0A1
accent
#D04BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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