#505EC7#505EC7

#505EC7 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.162 H 273.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#505EC7
RGBrgb(80, 94, 199)
HSLhsl(233, 52%, 55%)
HSVhsv(233, 60%, 78%)
CMYKcmyk(59.8%, 52.8%, 0%, 22%)
CIE-LABlab(43.99, 26.49, -56.58)
CIE-LCHlch(43.99, 62.47, 295.09°)
OKLaboklab(52.74% 0.0106 -0.1621)
OKLCHoklch(52.74% 0.162 273.8)
XYZxyz(17.6164, 13.8330, 55.7635)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EC7 #C7B950
analogous
#509AC7 #505EC7 #7E50C7
triadic
#505EC7 #C7505E #5EC750
tetradic
#505EC7 #C7509A #C7B950 #50C77E
square
#505EC7 #C7509A #C7B950 #50C77E
split-complementary
#505EC7 #C77E50 #9AC750
monochromatic
#262F77 #3542A5 #505EC7 #7E89D6 #ADB3E5

Accessibility & contrast

On white

5.58
#505EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#505EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EC7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EC7#FFFFFF#000000##FFFFFF
##505EC71.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6DCB
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ec7;
/* rgb */ color: rgb(80, 94, 199);
/* oklch */ color: oklch(52.7% 0.162 273.8);
Tailwind
colors: {
  custom: {
    50: '#8c8bd9',
    500: '#505ec7',
    950: '#000000',
  },
}
SCSS
$custom: #505ec7;
$custom-light: #8c8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#505ec7",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 232.941,
    "s": 51.515,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52739,
    "c": 0.16248,
    "h": 273.8
  },
  "luminance": 0.13834
}

Semantic roles & 50–950 ramp

primary
#505EC7
secondary
#D2CDA0
accent
#CA4DDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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