#505CD4#505CD4

#505CD4 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.3% C 0.183 H 274.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#505CD4
RGBrgb(80, 92, 212)
HSLhsl(235, 61%, 57%)
HSVhsv(235, 62%, 83%)
CMYKcmyk(62.3%, 56.6%, 0%, 16.9%)
CIE-LABlab(44.39, 32.12, -63.41)
CIE-LCHlch(44.39, 71.08, 296.86°)
OKLaboklab(53.33% 0.0131 -0.1822)
OKLCHoklch(53.33% 0.183 274.1)
XYZxyz(19.0152, 14.1117, 63.9964)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CD4 #D4C850
analogous
#509ED4 #505CD4 #8650D4
triadic
#505CD4 #D4505C #5CD450
tetradic
#505CD4 #D4509E #D4C850 #50D486
square
#505CD4 #D4509E #D4C850 #50D486
split-complementary
#505CD4 #D48650 #9ED450
monochromatic
#212B88 #2E3AB9 #505CD4 #818AE0 #B2B8EC

Accessibility & contrast

On white

5.49
#505CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#505CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CD4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CD4#FFFFFF#000000##FFFFFF
##505CD41.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #505cd4;
/* rgb */ color: rgb(80, 92, 212);
/* oklch */ color: oklch(53.3% 0.183 274.1);
Tailwind
colors: {
  custom: {
    50: '#8e8ae2',
    500: '#505cd4',
    950: '#000000',
  },
}
SCSS
$custom: #505cd4;
$custom-light: #8e8ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#505cd4",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 234.545,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53326,
    "c": 0.18271,
    "h": 274.1
  },
  "luminance": 0.14113
}

Semantic roles & 50–950 ramp

primary
#505CD4
secondary
#DBD6A5
accent
#D544E4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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