#505BC7#505BC7

#505BC7 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.2% C 0.166 H 274.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#505BC7
RGBrgb(80, 91, 199)
HSLhsl(234, 52%, 55%)
HSVhsv(234, 60%, 78%)
CMYKcmyk(59.8%, 54.3%, 0%, 22%)
CIE-LABlab(43.23, 28.37, -57.82)
CIE-LCHlch(43.23, 64.40, 296.14°)
OKLaboklab(52.16% 0.0136 -0.1658)
OKLCHoklch(52.16% 0.166 274.7)
XYZxyz(17.3548, 13.3098, 55.6763)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BC7 #C7BC50
analogous
#5096C7 #505BC7 #8150C7
triadic
#505BC7 #C7505B #5BC750
tetradic
#505BC7 #C75096 #C7BC50 #50C781
square
#505BC7 #C75096 #C7BC50 #50C781
split-complementary
#505BC7 #C78150 #96C750
monochromatic
#262D77 #353FA5 #505BC7 #7E86D6 #ADB2E5

Accessibility & contrast

On white

5.73
#505BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#505BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BC7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BC7#FFFFFF#000000##FFFFFF
##505BC71.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106BCB
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505bc7;
/* rgb */ color: rgb(80, 91, 199);
/* oklch */ color: oklch(52.2% 0.166 274.7);
Tailwind
colors: {
  custom: {
    50: '#8c89d9',
    500: '#505bc7',
    950: '#000000',
  },
}
SCSS
$custom: #505bc7;
$custom-light: #8c89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#505bc7",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 234.454,
    "s": 51.515,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52165,
    "c": 0.16636,
    "h": 274.7
  },
  "luminance": 0.13311
}

Semantic roles & 50–950 ramp

primary
#505BC7
secondary
#D2CEA0
accent
#CE4DDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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