#505FD2#505FD2

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

Color values

HEX#505FD2
RGBrgb(80, 95, 210)
HSLhsl(233, 59%, 57%)
HSVhsv(233, 62%, 82%)
CMYKcmyk(61.9%, 54.8%, 0%, 17.6%)
CIE-LABlab(45.00, 29.57, -61.28)
CIE-LCHlch(45.00, 68.04, 295.76°)
OKLaboklab(53.73% 0.0103 -0.1759)
OKLCHoklch(53.73% 0.176 273.3)
XYZxyz(19.0295, 14.5415, 62.7642)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD2 #D2C350
analogous
#50A0D2 #505FD2 #8250D2
triadic
#505FD2 #D2505F #5FD250
tetradic
#505FD2 #D250A0 #D2C350 #50D282
square
#505FD2 #D250A0 #D2C350 #50D282
split-complementary
#505FD2 #D28250 #A0D250
monochromatic
#222E85 #2F3EB6 #505FD2 #818CDF #B1B8EB

Accessibility & contrast

On white

5.37
#505FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#505FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD2#FFFFFF#000000##FFFFFF
##505FD21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0270D6
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505fd2;
/* rgb */ color: rgb(80, 95, 210);
/* oklch */ color: oklch(53.7% 0.176 273.3);
Tailwind
colors: {
  custom: {
    50: '#8e8ce1',
    500: '#505fd2',
    950: '#000000',
  },
}
SCSS
$custom: #505fd2;
$custom-light: #8e8ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd2",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 233.077,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53734,
    "c": 0.17624,
    "h": 273.3
  },
  "luminance": 0.14543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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