#505FC7#505FC7

#505FC7 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.9% C 0.161 H 273.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#505FC7
RGBrgb(80, 95, 199)
HSLhsl(232, 52%, 55%)
HSVhsv(232, 60%, 78%)
CMYKcmyk(59.8%, 52.3%, 0%, 22%)
CIE-LABlab(44.25, 25.86, -56.16)
CIE-LCHlch(44.25, 61.83, 294.72°)
OKLaboklab(52.93% 0.0096 -0.1609)
OKLCHoklch(52.93% 0.161 273.4)
XYZxyz(17.7059, 14.0120, 55.7933)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FC7 #C7B850
analogous
#509BC7 #505FC7 #7D50C7
triadic
#505FC7 #C7505F #5FC750
tetradic
#505FC7 #C7509B #C7B850 #50C77D
square
#505FC7 #C7509B #C7B850 #50C77D
split-complementary
#505FC7 #C77D50 #9BC750
monochromatic
#263077 #3543A5 #505FC7 #7E89D6 #ADB4E5

Accessibility & contrast

On white

5.52
#505FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#505FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FC7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FC7#FFFFFF#000000##FFFFFF
##505FC71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226ECB
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505fc7;
/* rgb */ color: rgb(80, 95, 199);
/* oklch */ color: oklch(52.9% 0.161 273.4);
Tailwind
colors: {
  custom: {
    50: '#8c8cd9',
    500: '#505fc7',
    950: '#000000',
  },
}
SCSS
$custom: #505fc7;
$custom-light: #8c8cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#505fc7",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 232.437,
    "s": 51.515,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52933,
    "c": 0.16119,
    "h": 273.4
  },
  "luminance": 0.14013
}

Semantic roles & 50–950 ramp

primary
#505FC7
secondary
#D2CCA0
accent
#C94DDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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