#505BDB#505BDB

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

Color values

HEX#505BDB
RGBrgb(80, 91, 219)
HSLhsl(235, 66%, 59%)
HSVhsv(235, 63%, 86%)
CMYKcmyk(63.5%, 58.4%, 0%, 14.1%)
CIE-LABlab(44.66, 35.09, -66.97)
CIE-LCHlch(44.66, 75.60, 297.65°)
OKLaboklab(53.69% 0.014 -0.1927)
OKLCHoklch(53.69% 0.193 274.2)
XYZxyz(19.8313, 14.3004, 68.7193)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BDB #DBD050
analogous
#50A0DB #505BDB #8A50DB
triadic
#505BDB #DB505B #5BDB50
tetradic
#505BDB #DB50A0 #DBD050 #50DB8A
square
#505BDB #DB50A0 #DBD050 #50DB8A
split-complementary
#505BDB #DB8A50 #A0DB50
monochromatic
#1E2792 #2935C5 #505BDB #838BE5 #B6BAF0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505BDB#FFFFFF#000000##FFFFFF
##505BDB1.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)
#0070DF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505bdb;
/* rgb */ color: rgb(80, 91, 219);
/* oklch */ color: oklch(53.7% 0.193 274.2);
Tailwind
colors: {
  custom: {
    50: '#8f89e7',
    500: '#505bdb',
    950: '#000000',
  },
}
SCSS
$custom: #505bdb;
$custom-light: #8f89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#505bdb",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 235.252,
    "s": 65.877,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53686,
    "c": 0.19323,
    "h": 274.2
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#505BDB
secondary
#DFDBA8
accent
#DB3FE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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