#505DD4#505DD4

#505DD4 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.5% C 0.181 H 273.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#505DD4
RGBrgb(80, 93, 212)
HSLhsl(234, 61%, 57%)
HSVhsv(234, 62%, 83%)
CMYKcmyk(62.3%, 56.1%, 0%, 16.9%)
CIE-LABlab(44.64, 31.50, -63.00)
CIE-LCHlch(44.64, 70.44, 296.56°)
OKLaboklab(53.51% 0.0122 -0.181)
OKLCHoklch(53.51% 0.181 273.8)
XYZxyz(19.1024, 14.2861, 64.0254)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DD4 #D4C750
analogous
#509FD4 #505DD4 #8550D4
triadic
#505DD4 #D4505D #5DD450
tetradic
#505DD4 #D4509F #D4C750 #50D485
square
#505DD4 #D4509F #D4C750 #50D485
split-complementary
#505DD4 #D48550 #9FD450
monochromatic
#212C88 #2E3BB9 #505DD4 #818AE0 #B2B8EC

Accessibility & contrast

On white

5.44
#505DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#505DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DD4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DD4#FFFFFF#000000##FFFFFF
##505DD41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505dd4;
/* rgb */ color: rgb(80, 93, 212);
/* oklch */ color: oklch(53.5% 0.181 273.8);
Tailwind
colors: {
  custom: {
    50: '#8e8ae2',
    500: '#505dd4',
    950: '#000000',
  },
}
SCSS
$custom: #505dd4;
$custom-light: #8e8ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#505dd4",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 234.091,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5351,
    "c": 0.18145,
    "h": 273.8
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

primary
#505DD4
secondary
#DBD5A5
accent
#D444E4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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