#505FD4#505FD4

#505FD4 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.9% C 0.179 H 273.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#505FD4
RGBrgb(80, 95, 212)
HSLhsl(233, 61%, 57%)
HSVhsv(233, 62%, 83%)
CMYKcmyk(62.3%, 55.2%, 0%, 16.9%)
CIE-LABlab(45.14, 30.25, -62.20)
CIE-LCHlch(45.14, 69.16, 295.94°)
OKLaboklab(53.88% 0.0104 -0.1786)
OKLCHoklch(53.88% 0.179 273.3)
XYZxyz(19.2802, 14.6417, 64.0847)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD4 #D4C550
analogous
#50A1D4 #505FD4 #8350D4
triadic
#505FD4 #D4505F #5FD450
tetradic
#505FD4 #D450A1 #D4C550 #50D483
square
#505FD4 #D450A1 #D4C550 #50D483
split-complementary
#505FD4 #D48350 #A1D450
monochromatic
#212D88 #2E3DB9 #505FD4 #818CE0 #B2B9EC

Accessibility & contrast

On white

5.35
#505FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#505FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD4
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD4#FFFFFF#000000##FFFFFF
##505FD41.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#0065D2
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505fd4;
/* rgb */ color: rgb(80, 95, 212);
/* oklch */ color: oklch(53.9% 0.179 273.3);
Tailwind
colors: {
  custom: {
    50: '#8e8ce2',
    500: '#505fd4',
    950: '#000000',
  },
}
SCSS
$custom: #505fd4;
$custom-light: #8e8ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd4",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 233.182,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53883,
    "c": 0.17894,
    "h": 273.3
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#505FD4
secondary
#DBD5A5
accent
#D244E4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #505FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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