#5B5DFD#5B5DFD

#5B5DFD is a mid, highly saturated blue. Relative luminance 0.171; OKLCH L 57.5% C 0.232 H 275.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5B5DFD
RGBrgb(91, 93, 253)
HSLhsl(239, 98%, 67%)
HSVhsv(239, 64%, 99%)
CMYKcmyk(64%, 63.2%, 0%, 0.8%)
CIE-LABlab(48.44, 46.62, -79.91)
CIE-LCHlch(48.44, 92.51, 300.26°)
OKLaboklab(57.46% 0.0232 -0.2304)
OKLCHoklch(57.46% 0.232 275.7)
XYZxyz(25.9525, 17.1425, 94.8506)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DFD #FDFB5B
analogous
#5BAEFD #5B5DFD #AA5BFD
triadic
#5B5DFD #FD5B5D #5DFD5B
tetradic
#5B5DFD #FD5BAE #FDFB5B #5BFDAA
square
#5B5DFD #FD5BAE #FDFB5B #5BFDAA
split-complementary
#5B5DFD #FDAA5B #AEFD5B
monochromatic
#0305DB #1F21FC #5B5DFD #9799FE #D4D4FE

Accessibility & contrast

On white

4.74
#5B5DFD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5B5DFD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DFD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DFD#FFFFFF#000000##FFFFFF
##5B5DFD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#006CFA
Tritanopia (blue-blind)
#0086A5
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b5dfd;
/* rgb */ color: rgb(91, 93, 253);
/* oklch */ color: oklch(57.5% 0.232 275.7);
Tailwind
colors: {
  custom: {
    50: '#9a8bff',
    500: '#5b5dfd',
    950: '#000000',
  },
}
SCSS
$custom: #5b5dfd;
$custom-light: #9a8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5dfd",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 253
  },
  "hsl": {
    "h": 239.259,
    "s": 97.59,
    "l": 67.451
  },
  "oklch": {
    "l": 0.57464,
    "c": 0.23159,
    "h": 275.7
  },
  "luminance": 0.17145
}

Semantic roles & 50–950 ramp

primary
#5B5DFD
secondary
#F3F3C1
accent
#E300E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5B5DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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