#505CDB#505CDB

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

Color values

HEX#505CDB
RGBrgb(80, 92, 219)
HSLhsl(235, 66%, 59%)
HSVhsv(235, 63%, 86%)
CMYKcmyk(63.5%, 58%, 0%, 14.1%)
CIE-LABlab(44.90, 34.47, -66.57)
CIE-LCHlch(44.90, 74.97, 297.38°)
OKLaboklab(53.87% 0.0132 -0.1915)
OKLCHoklch(53.87% 0.192 273.9)
XYZxyz(19.9174, 14.4725, 68.7480)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CDB #DBCF50
analogous
#50A1DB #505CDB #8950DB
triadic
#505CDB #DB505C #5CDB50
tetradic
#505CDB #DB50A1 #DBCF50 #50DB89
square
#505CDB #DB50A1 #DBCF50 #50DB89
split-complementary
#505CDB #DB8950 #A1DB50
monochromatic
#1E2892 #2936C5 #505CDB #838BE5 #B6BBF0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505CDB#FFFFFF#000000##FFFFFF
##505CDB1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505cdb;
/* rgb */ color: rgb(80, 92, 219);
/* oklch */ color: oklch(53.9% 0.192 273.9);
Tailwind
colors: {
  custom: {
    50: '#8f8ae7',
    500: '#505cdb',
    950: '#000000',
  },
}
SCSS
$custom: #505cdb;
$custom-light: #8f8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#505cdb",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 234.82,
    "s": 65.877,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53866,
    "c": 0.192,
    "h": 273.9
  },
  "luminance": 0.14474
}

Semantic roles & 50–950 ramp

primary
#505CDB
secondary
#DFDAA8
accent
#DA3FE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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