#505DD9#505DD9

#505DD9 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.9% C 0.188 H 273.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#505DD9
RGBrgb(80, 93, 217)
HSLhsl(234, 64%, 58%)
HSVhsv(234, 63%, 85%)
CMYKcmyk(63.1%, 57.1%, 0%, 14.9%)
CIE-LABlab(45.00, 33.18, -65.27)
CIE-LCHlch(45.00, 73.22, 296.95°)
OKLaboklab(53.89% 0.0123 -0.1877)
OKLCHoklch(53.89% 0.188 273.7)
XYZxyz(19.7429, 14.5423, 67.3987)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DD9 #D9CC50
analogous
#50A1D9 #505DD9 #8850D9
triadic
#505DD9 #D9505D #5DD950
tetradic
#505DD9 #D950A1 #D9CC50 #50D988
square
#505DD9 #D950A1 #D9CC50 #50D988
split-complementary
#505DD9 #D98850 #A1D950
monochromatic
#1F2A8F #2A38C2 #505DD9 #828CE4 #B5BAEF

Accessibility & contrast

On white

5.37
#505DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#505DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DD9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DD9#FFFFFF#000000##FFFFFF
##505DD91.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#007B92
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505dd9;
/* rgb */ color: rgb(80, 93, 217);
/* oklch */ color: oklch(53.9% 0.188 273.7);
Tailwind
colors: {
  custom: {
    50: '#8f8ae6',
    500: '#505dd9',
    950: '#000000',
  },
}
SCSS
$custom: #505dd9;
$custom-light: #8f8ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#505dd9",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 217
  },
  "hsl": {
    "h": 234.307,
    "s": 64.319,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53893,
    "c": 0.18812,
    "h": 273.7
  },
  "luminance": 0.14544
}

Semantic roles & 50–950 ramp

primary
#505DD9
secondary
#DED9A7
accent
#D740E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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