#505FD8#505FD8

#505FD8 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.2% C 0.184 H 273.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#505FD8
RGBrgb(80, 95, 216)
HSLhsl(233, 64%, 58%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(63%, 56%, 0%, 15.3%)
CIE-LABlab(45.42, 31.60, -64.02)
CIE-LCHlch(45.42, 71.40, 296.27°)
OKLaboklab(54.18% 0.0105 -0.184)
OKLCHoklch(54.18% 0.184 273.3)
XYZxyz(19.7910, 14.8461, 66.7751)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD8 #D8C950
analogous
#50A3D8 #505FD8 #8550D8
triadic
#505FD8 #D8505F #5FD850
tetradic
#505FD8 #D850A3 #D8C950 #50D885
square
#505FD8 #D850A3 #D8C950 #50D885
split-complementary
#505FD8 #D88550 #A3D850
monochromatic
#202C8E #2B3BC0 #505FD8 #828DE3 #B4BBEE

Accessibility & contrast

On white

5.29
#505FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#505FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD8#FFFFFF#000000##FFFFFF
##505FD81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505fd8;
/* rgb */ color: rgb(80, 95, 216);
/* oklch */ color: oklch(54.2% 0.184 273.3);
Tailwind
colors: {
  custom: {
    50: '#8f8ce5',
    500: '#505fd8',
    950: '#000000',
  },
}
SCSS
$custom: #505fd8;
$custom-light: #8f8ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd8",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 233.382,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.18431,
    "h": 273.3
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#505FD8
secondary
#DDD7A7
accent
#D441E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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