#505CBF#505CBF

#505CBF is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.154 H 274.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#505CBF
RGBrgb(80, 92, 191)
HSLhsl(234, 46%, 53%)
HSVhsv(234, 58%, 75%)
CMYKcmyk(58.1%, 51.8%, 0%, 25.1%)
CIE-LABlab(42.94, 25.06, -53.64)
CIE-LCHlch(42.94, 59.20, 295.04°)
OKLaboklab(51.78% 0.0121 -0.1535)
OKLCHoklch(51.78% 0.154 274.5)
XYZxyz(16.5363, 13.1201, 50.9411)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CBF #BFB350
analogous
#5093BF #505CBF #7C50BF
triadic
#505CBF #BF505C #5CBF50
tetradic
#505CBF #BF5093 #BFB350 #50BF7C
square
#505CBF #BF5093 #BFB350 #50BF7C
split-complementary
#505CBF #BF7C50 #93BF50
monochromatic
#282F6D #38439A #505CBF #7D86CF #AAAFE0

Accessibility & contrast

On white

5.79
#505CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#505CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CBF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CBF#FFFFFF#000000##FFFFFF
##505CBF1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC3
Deuteranopia (green-blind)
#0961BD
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505cbf;
/* rgb */ color: rgb(80, 92, 191);
/* oklch */ color: oklch(51.8% 0.154 274.5);
Tailwind
colors: {
  custom: {
    50: '#8b8ad3',
    500: '#505cbf',
    950: '#000000',
  },
}
SCSS
$custom: #505cbf;
$custom-light: #8b8ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#505cbf",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 191
  },
  "hsl": {
    "h": 233.514,
    "s": 46.444,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.15397,
    "h": 274.5
  },
  "luminance": 0.13121
}

Semantic roles & 50–950 ramp

primary
#505CBF
secondary
#CDC89D
accent
#C852D6
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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