#505BCF#505BCF

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

Color values

HEX#505BCF
RGBrgb(80, 91, 207)
HSLhsl(235, 57%, 56%)
HSVhsv(235, 61%, 81%)
CMYKcmyk(61.4%, 56%, 0%, 18.8%)
CIE-LABlab(43.79, 31.06, -61.52)
CIE-LCHlch(43.79, 68.92, 296.79°)
OKLaboklab(52.76% 0.0139 -0.1767)
OKLCHoklch(52.76% 0.177 274.5)
XYZxyz(18.3081, 13.6912, 60.6973)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BCF #CFC450
analogous
#509BCF #505BCF #8550CF
triadic
#505BCF #CF505B #5BCF50
tetradic
#505BCF #CF509B #CFC450 #50CF85
square
#505BCF #CF509B #CFC450 #50CF85
split-complementary
#505BCF #CF8550 #9BCF50
monochromatic
#232C81 #313CB1 #505BCF #8088DC #B0B5E9

Accessibility & contrast

On white

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

On black

3.74
#505BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##505BCF#FFFFFF#000000##FFFFFF
##505BCF1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#0062CD
Tritanopia (blue-blind)
#00778C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505bcf;
/* rgb */ color: rgb(80, 91, 207);
/* oklch */ color: oklch(52.8% 0.177 274.5);
Tailwind
colors: {
  custom: {
    50: '#8d89de',
    500: '#505bcf',
    950: '#000000',
  },
}
SCSS
$custom: #505bcf;
$custom-light: #8d89de;
$custom-dark: #000000;
JSON
{
  "hex": "#505bcf",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 207
  },
  "hsl": {
    "h": 234.803,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.17725,
    "h": 274.5
  },
  "luminance": 0.13693
}

Semantic roles & 50–950 ramp

primary
#505BCF
secondary
#D8D3A3
accent
#D348E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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