#505FD5#505FD5

#505FD5 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.0% C 0.180 H 273.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#505FD5
RGBrgb(80, 95, 213)
HSLhsl(233, 61%, 57%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(62.4%, 55.4%, 0%, 16.5%)
CIE-LABlab(45.21, 30.59, -62.65)
CIE-LCHlch(45.21, 69.72, 296.02°)
OKLaboklab(53.96% 0.0104 -0.18)
OKLCHoklch(53.96% 0.18 273.3)
XYZxyz(19.4067, 14.6924, 64.7511)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FD5 #D5C650
analogous
#50A2D5 #505FD5 #8350D5
triadic
#505FD5 #D5505F #5FD550
tetradic
#505FD5 #D550A2 #D5C650 #50D583
square
#505FD5 #D550A2 #D5C650 #50D583
split-complementary
#505FD5 #D58350 #A2D550
monochromatic
#212D8A #2D3DBB #505FD5 #818CE1 #B3B9ED

Accessibility & contrast

On white

5.33
#505FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#505FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FD5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FD5#FFFFFF#000000##FFFFFF
##505FD51.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#0065D3
Tritanopia (blue-blind)
#007B91
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505fd5;
/* rgb */ color: rgb(80, 95, 213);
/* oklch */ color: oklch(54.0% 0.180 273.3);
Tailwind
colors: {
  custom: {
    50: '#8e8ce3',
    500: '#505fd5',
    950: '#000000',
  },
}
SCSS
$custom: #505fd5;
$custom-light: #8e8ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#505fd5",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 213
  },
  "hsl": {
    "h": 233.233,
    "s": 61.29,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53958,
    "c": 0.18029,
    "h": 273.3
  },
  "luminance": 0.14694
}

Semantic roles & 50–950 ramp

primary
#505FD5
secondary
#DBD5A6
accent
#D243E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #505FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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