#505FDC#505FDC

#505FDC is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.5% C 0.190 H 273.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#505FDC
RGBrgb(80, 95, 220)
HSLhsl(234, 67%, 59%)
HSVhsv(234, 64%, 86%)
CMYKcmyk(63.6%, 56.8%, 0%, 13.7%)
CIE-LABlab(45.71, 32.95, -65.83)
CIE-LCHlch(45.71, 73.62, 296.59°)
OKLaboklab(54.49% 0.0106 -0.1893)
OKLCHoklch(54.49% 0.19 273.2)
XYZxyz(20.3144, 15.0554, 69.5317)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FDC #DCCD50
analogous
#50A5DC #505FDC #8750DC
triadic
#505FDC #DC505F #5FDC50
tetradic
#505FDC #DC50A5 #DCCD50 #50DC87
square
#505FDC #DC50A5 #DCCD50 #50DC87
split-complementary
#505FDC #DC8750 #A5DC50
monochromatic
#1E2A94 #2839C7 #505FDC #838EE6 #B6BCF0

Accessibility & contrast

On white

5.24
#505FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#505FDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FDC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FDC#FFFFFF#000000##FFFFFF
##505FDC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#007D94
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #505fdc;
/* rgb */ color: rgb(80, 95, 220);
/* oklch */ color: oklch(54.5% 0.190 273.2);
Tailwind
colors: {
  custom: {
    50: '#8f8ce8',
    500: '#505fdc',
    950: '#000000',
  },
}
SCSS
$custom: #505fdc;
$custom-light: #8f8ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#505fdc",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 233.571,
    "s": 66.667,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54489,
    "c": 0.18963,
    "h": 273.2
  },
  "luminance": 0.15057
}

Semantic roles & 50–950 ramp

primary
#505FDC
secondary
#DFDAA8
accent
#D73EEA
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #505FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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