#505FD1#505FD1

#505FD1 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.7% C 0.175 H 273.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#505FD1
RGBrgb(80, 95, 209)
HSLhsl(233, 58%, 57%)
HSVhsv(233, 62%, 82%)
CMYKcmyk(61.7%, 54.5%, 0%, 18%)
CIE-LABlab(44.93, 29.24, -60.82)
CIE-LCHlch(44.93, 67.48, 295.68°)
OKLaboklab(53.66% 0.0102 -0.1746)
OKLCHoklch(53.66% 0.175 273.4)
XYZxyz(18.9053, 14.4918, 62.1102)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD1 #D1C250
analogous
#50A0D1 #505FD1 #8250D1
triadic
#505FD1 #D1505F #5FD150
tetradic
#505FD1 #D150A0 #D1C250 #50D182
square
#505FD1 #D150A0 #D1C250 #50D182
split-complementary
#505FD1 #D18250 #A0D150
monochromatic
#232E84 #2F3FB4 #505FD1 #808BDE #B1B8EA

Accessibility & contrast

On white

5.39
#505FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#505FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD1
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD1#FFFFFF#000000##FFFFFF
##505FD11.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0770D5
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505fd1;
/* rgb */ color: rgb(80, 95, 209);
/* oklch */ color: oklch(53.7% 0.175 273.4);
Tailwind
colors: {
  custom: {
    50: '#8d8ce0',
    500: '#505fd1',
    950: '#000000',
  },
}
SCSS
$custom: #505fd1;
$custom-light: #8d8ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd1",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 209
  },
  "hsl": {
    "h": 233.023,
    "s": 58.371,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.17489,
    "h": 273.4
  },
  "luminance": 0.14493
}

Semantic roles & 50–950 ramp

primary
#505FD1
secondary
#D9D3A4
accent
#D046E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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