#505BD4#505BD4

#505BD4 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.1% C 0.184 H 274.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#505BD4
RGBrgb(80, 91, 212)
HSLhsl(235, 61%, 57%)
HSVhsv(235, 62%, 83%)
CMYKcmyk(62.3%, 57.1%, 0%, 16.9%)
CIE-LABlab(44.15, 32.74, -63.81)
CIE-LCHlch(44.15, 71.72, 297.16°)
OKLaboklab(53.14% 0.014 -0.1834)
OKLCHoklch(53.14% 0.184 274.4)
XYZxyz(18.9291, 13.9395, 63.9677)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BD4 #D4C950
analogous
#509DD4 #505BD4 #8750D4
triadic
#505BD4 #D4505B #5BD450
tetradic
#505BD4 #D4509D #D4C950 #50D487
square
#505BD4 #D4509D #D4C950 #50D487
split-complementary
#505BD4 #D48750 #9DD450
monochromatic
#212A88 #2E39B9 #505BD4 #8189E0 #B2B7EC

Accessibility & contrast

On white

5.54
#505BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#505BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BD4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BD4#FFFFFF#000000##FFFFFF
##505BD41.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#00788F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505bd4;
/* rgb */ color: rgb(80, 91, 212);
/* oklch */ color: oklch(53.1% 0.184 274.4);
Tailwind
colors: {
  custom: {
    50: '#8e89e2',
    500: '#505bd4',
    950: '#000000',
  },
}
SCSS
$custom: #505bd4;
$custom-light: #8e89e2;
$custom-dark: #000000;
JSON
{
  "hex": "#505bd4",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 235,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53142,
    "c": 0.18395,
    "h": 274.4
  },
  "luminance": 0.13941
}

Semantic roles & 50–950 ramp

primary
#505BD4
secondary
#DBD6A5
accent
#D644E4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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