#505BDF#505BDF

#505BDF is a mid, vivid blue. Relative luminance 0.145; OKLCH L 54.0% C 0.198 H 274.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#505BDF
RGBrgb(80, 91, 223)
HSLhsl(235, 69%, 59%)
HSVhsv(235, 64%, 87%)
CMYKcmyk(64.1%, 59.2%, 0%, 12.5%)
CIE-LABlab(44.96, 36.43, -68.75)
CIE-LCHlch(44.96, 77.81, 297.92°)
OKLaboklab(54% 0.014 -0.198)
OKLCHoklch(54% 0.198 274)
XYZxyz(20.3642, 14.5136, 71.5260)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BDF #DFD450
analogous
#50A2DF #505BDF #8D50DF
triadic
#505BDF #DF505B #5BDF50
tetradic
#505BDF #DF50A2 #DFD450 #50DF8D
square
#505BDF #DF50A2 #DFD450 #50DF8D
split-complementary
#505BDF #DF8D50 #A2DF50
monochromatic
#1C2699 #2532CC #505BDF #848BE8 #B7BCF2

Accessibility & contrast

On white

5.38
#505BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #505BDF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BDF#FFFFFF#000000##FFFFFF
##505BDF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#0064DC
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #505bdf;
/* rgb */ color: rgb(80, 91, 223);
/* oklch */ color: oklch(54.0% 0.198 274.0);
Tailwind
colors: {
  custom: {
    50: '#9089ea',
    500: '#505bdf',
    950: '#000000',
  },
}
SCSS
$custom: #505bdf;
$custom-light: #9089ea;
$custom-dark: #000000;
JSON
{
  "hex": "#505bdf",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 223
  },
  "hsl": {
    "h": 235.385,
    "s": 69.082,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54003,
    "c": 0.19846,
    "h": 274
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#505BDF
secondary
#E1DDAA
accent
#DE3CEC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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