#505BD7#505BD7

#505BD7 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.4% C 0.188 H 274.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#505BD7
RGBrgb(80, 91, 215)
HSLhsl(235, 63%, 58%)
HSVhsv(235, 63%, 84%)
CMYKcmyk(62.8%, 57.7%, 0%, 15.7%)
CIE-LABlab(44.37, 33.75, -65.17)
CIE-LCHlch(44.37, 73.39, 297.38°)
OKLaboklab(53.37% 0.014 -0.1874)
OKLCHoklch(53.37% 0.188 274.3)
XYZxyz(19.3110, 14.0923, 65.9792)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BD7 #D7CC50
analogous
#509ED7 #505BD7 #8850D7
triadic
#505BD7 #D7505B #5BD750
tetradic
#505BD7 #D7509E #D7CC50 #50D788
square
#505BD7 #D7509E #D7CC50 #50D788
split-complementary
#505BD7 #D78850 #9ED750
monochromatic
#20298C #2B37BE #505BD7 #828AE2 #B4B8EE

Accessibility & contrast

On white

5.50
#505BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#505BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BD7
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BD7#FFFFFF#000000##FFFFFF
##505BD71.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#0063D5
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505bd7;
/* rgb */ color: rgb(80, 91, 215);
/* oklch */ color: oklch(53.4% 0.188 274.3);
Tailwind
colors: {
  custom: {
    50: '#8f89e4',
    500: '#505bd7',
    950: '#000000',
  },
}
SCSS
$custom: #505bd7;
$custom-light: #8f89e4;
$custom-dark: #000000;
JSON
{
  "hex": "#505bd7",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 235.111,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53374,
    "c": 0.18794,
    "h": 274.3
  },
  "luminance": 0.14094
}

Semantic roles & 50–950 ramp

primary
#505BD7
secondary
#DCD8A6
accent
#D842E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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