#5D5FD5#5D5FD5

#5D5FD5 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.8% C 0.177 H 278.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5D5FD5
RGBrgb(93, 95, 213)
HSLhsl(239, 59%, 60%)
HSVhsv(239, 56%, 84%)
CMYKcmyk(56.3%, 55.4%, 0%, 16.5%)
CIE-LABlab(46.06, 32.89, -61.23)
CIE-LCHlch(46.06, 69.51, 298.25°)
OKLaboklab(54.82% 0.0249 -0.1755)
OKLCHoklch(54.82% 0.177 278.1)
XYZxyz(20.6128, 15.3143, 64.8076)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5FD5 #D5D35D
analogous
#5D9BD5 #5D5FD5 #975DD5
triadic
#5D5FD5 #D55D5F #5FD55D
tetradic
#5D5FD5 #D55D9B #D5D35D #5DD597
square
#5D5FD5 #D55D9B #D5D35D #5DD597
split-complementary
#5D5FD5 #D5975D #9BD55D
monochromatic
#262892 #3235C2 #5D5FD5 #8E8FE2 #BEBFEE

Accessibility & contrast

On white

5.17
#5D5FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5D5FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5FD5
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5FD5#FFFFFF#000000##FFFFFF
##5D5FD51.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0372D9
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#197A91
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5d5fd5;
/* rgb */ color: rgb(93, 95, 213);
/* oklch */ color: oklch(54.8% 0.177 278.1);
Tailwind
colors: {
  custom: {
    50: '#958ce3',
    500: '#5d5fd5',
    950: '#000000',
  },
}
SCSS
$custom: #5d5fd5;
$custom-light: #958ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5fd5",
  "rgb": {
    "r": 93,
    "g": 95,
    "b": 213
  },
  "hsl": {
    "h": 239,
    "s": 58.824,
    "l": 60
  },
  "oklch": {
    "l": 0.54815,
    "c": 0.17724,
    "h": 278.1
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#5D5FD5
secondary
#DEDDB0
accent
#DF46E2
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84

Preview Lab

Preview with #5D5FD5

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

Preview Lab → · Contrast checker → · Palette generator →

#5D5FD5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva