#505DD7#505DD7

#505DD7 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.7% C 0.185 H 273.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#505DD7
RGBrgb(80, 93, 215)
HSLhsl(234, 63%, 58%)
HSVhsv(234, 63%, 84%)
CMYKcmyk(62.8%, 56.7%, 0%, 15.7%)
CIE-LABlab(44.86, 32.51, -64.37)
CIE-LCHlch(44.86, 72.11, 296.79°)
OKLaboklab(53.74% 0.0122 -0.1851)
OKLCHoklch(53.74% 0.185 273.8)
XYZxyz(19.4843, 14.4388, 66.0370)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DD7 #D7CA50
analogous
#50A1D7 #505DD7 #8650D7
triadic
#505DD7 #D7505D #5DD750
tetradic
#505DD7 #D750A1 #D7CA50 #50D786
square
#505DD7 #D750A1 #D7CA50 #50D786
split-complementary
#505DD7 #D78650 #A1D750
monochromatic
#202B8C #2B3ABE #505DD7 #828BE2 #B4B9EE

Accessibility & contrast

On white

5.40
#505DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#505DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DD7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DD7#FFFFFF#000000##FFFFFF
##505DD71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0064D5
Tritanopia (blue-blind)
#007A91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505dd7;
/* rgb */ color: rgb(80, 93, 215);
/* oklch */ color: oklch(53.7% 0.185 273.8);
Tailwind
colors: {
  custom: {
    50: '#8f8ae4',
    500: '#505dd7',
    950: '#000000',
  },
}
SCSS
$custom: #505dd7;
$custom-light: #8f8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#505dd7",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 215
  },
  "hsl": {
    "h": 234.222,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53739,
    "c": 0.18546,
    "h": 273.8
  },
  "luminance": 0.1444
}

Semantic roles & 50–950 ramp

primary
#505DD7
secondary
#DCD7A6
accent
#D642E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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