#505DD8#505DD8

#505DD8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.187 H 273.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#505DD8
RGBrgb(80, 93, 216)
HSLhsl(234, 64%, 58%)
HSVhsv(234, 63%, 85%)
CMYKcmyk(63%, 56.9%, 0%, 15.3%)
CIE-LABlab(44.93, 32.84, -64.82)
CIE-LCHlch(44.93, 72.67, 296.87°)
OKLaboklab(53.82% 0.0123 -0.1864)
OKLCHoklch(53.82% 0.187 273.8)
XYZxyz(19.6132, 14.4904, 66.7158)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DD8 #D8CB50
analogous
#50A1D8 #505DD8 #8750D8
triadic
#505DD8 #D8505D #5DD850
tetradic
#505DD8 #D850A1 #D8CB50 #50D887
square
#505DD8 #D850A1 #D8CB50 #50D887
split-complementary
#505DD8 #D88750 #A1D850
monochromatic
#202A8E #2B39C0 #505DD8 #828BE3 #B4BAEE

Accessibility & contrast

On white

5.39
#505DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#505DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DD8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DD8#FFFFFF#000000##FFFFFF
##505DD81.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#007B91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505dd8;
/* rgb */ color: rgb(80, 93, 216);
/* oklch */ color: oklch(53.8% 0.187 273.8);
Tailwind
colors: {
  custom: {
    50: '#8f8ae5',
    500: '#505dd8',
    950: '#000000',
  },
}
SCSS
$custom: #505dd8;
$custom-light: #8f8ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#505dd8",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 216
  },
  "hsl": {
    "h": 234.265,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53816,
    "c": 0.18679,
    "h": 273.8
  },
  "luminance": 0.14492
}

Semantic roles & 50–950 ramp

primary
#505DD8
secondary
#DDD8A7
accent
#D741E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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