#5D5FD2#5D5FD2

#5D5FD2 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.6% C 0.173 H 278.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5D5FD2
RGBrgb(93, 95, 210)
HSLhsl(239, 57%, 59%)
HSVhsv(239, 56%, 82%)
CMYKcmyk(55.7%, 54.8%, 0%, 17.6%)
CIE-LABlab(45.86, 31.93, -59.85)
CIE-LCHlch(45.86, 67.83, 298.08°)
OKLaboklab(54.6% 0.0248 -0.1714)
OKLCHoklch(54.6% 0.173 278.2)
XYZxyz(20.2356, 15.1634, 62.8208)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5FD2 #D2D05D
analogous
#5D9AD2 #5D5FD2 #955DD2
triadic
#5D5FD2 #D25D5F #5FD25D
tetradic
#5D5FD2 #D25D9A #D2D05D #5DD295
square
#5D5FD2 #D25D9A #D2D05D #5DD295
split-complementary
#5D5FD2 #D2955D #9AD25D
monochromatic
#27298D #3537BD #5D5FD2 #8D8EDF #BDBEED

Accessibility & contrast

On white

5.21
#5D5FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5D5FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5FD2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5FD2#FFFFFF#000000##FFFFFF
##5D5FD21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1071D6
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#1F7A8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5d5fd2;
/* rgb */ color: rgb(93, 95, 210);
/* oklch */ color: oklch(54.6% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#948ce0',
    500: '#5d5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5d5fd2;
$custom-light: #948ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5fd2",
  "rgb": {
    "r": 93,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 238.974,
    "s": 56.522,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54597,
    "c": 0.1732,
    "h": 278.2
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#5D5FD2
secondary
#DCDBAF
accent
#DD48E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5D5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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