#5D5FDF#5D5FDF

#5D5FDF is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.6% C 0.191 H 277.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5D5FDF
RGBrgb(93, 95, 223)
HSLhsl(239, 67%, 62%)
HSVhsv(239, 58%, 87%)
CMYKcmyk(58.3%, 57.4%, 0%, 12.5%)
CIE-LABlab(46.76, 36.11, -65.79)
CIE-LCHlch(46.76, 75.05, 298.76°)
OKLaboklab(55.56% 0.025 -0.1889)
OKLCHoklch(55.56% 0.191 277.5)
XYZxyz(21.9214, 15.8377, 71.6995)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5FDF #DFDD5D
analogous
#5DA0DF #5D5FDF #9C5DDF
triadic
#5D5FDF #DF5D5F #5FDF5D
tetradic
#5D5FDF #DF5DA0 #DFDD5D #5DDF9C
square
#5D5FDF #DF5DA0 #DFDD5D #5DDF9C
split-complementary
#5D5FDF #DF9C5D #A0DF5D
monochromatic
#2022A2 #2A2DD5 #5D5FDF #9091E9 #C3C4F3

Accessibility & contrast

On white

5.04
#5D5FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5D5FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5FDF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5FDF#FFFFFF#000000##FFFFFF
##5D5FDF1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0069DC
Tritanopia (blue-blind)
#007D96
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d5fdf;
/* rgb */ color: rgb(93, 95, 223);
/* oklch */ color: oklch(55.6% 0.191 277.5);
Tailwind
colors: {
  custom: {
    50: '#968cea',
    500: '#5d5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #5d5fdf;
$custom-light: #968cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5fdf",
  "rgb": {
    "r": 93,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 239.077,
    "s": 67.01,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.19054,
    "h": 277.5
  },
  "luminance": 0.15839
}

Semantic roles & 50–950 ramp

primary
#5D5FDF
secondary
#E4E3B4
accent
#CC17CF
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5D5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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