#5B5DFC#5B5DFC

#5B5DFC is a mid, highly saturated blue. Relative luminance 0.171; OKLCH L 57.4% C 0.230 H 275.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5B5DFC
RGBrgb(91, 93, 252)
HSLhsl(239, 96%, 67%)
HSVhsv(239, 64%, 99%)
CMYKcmyk(63.9%, 63.1%, 0%, 1.2%)
CIE-LABlab(48.36, 46.30, -79.48)
CIE-LCHlch(48.36, 91.99, 300.22°)
OKLaboklab(57.38% 0.0233 -0.2292)
OKLCHoklch(57.38% 0.23 275.8)
XYZxyz(25.7937, 17.0789, 94.0139)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DFC #FCFA5B
analogous
#5BADFC #5B5DFC #AA5BFC
triadic
#5B5DFC #FC5B5D #5DFC5B
tetradic
#5B5DFC #FC5BAD #FCFA5B #5BFCAA
square
#5B5DFC #FC5BAD #FCFA5B #5BFCAA
split-complementary
#5B5DFC #FCAA5B #ADFC5B
monochromatic
#0407D9 #1F22FB #5B5DFC #9798FD #D3D4FE

Accessibility & contrast

On white

4.76
#5B5DFC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5B5DFC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DFC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DFC#FFFFFF#000000##FFFFFF
##5B5DFC1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5dfc;
/* rgb */ color: rgb(91, 93, 252);
/* oklch */ color: oklch(57.4% 0.230 275.8);
Tailwind
colors: {
  custom: {
    50: '#9a8bfe',
    500: '#5b5dfc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5dfc;
$custom-light: #9a8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5dfc",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 252
  },
  "hsl": {
    "h": 239.255,
    "s": 96.407,
    "l": 67.255
  },
  "oklch": {
    "l": 0.57382,
    "c": 0.23036,
    "h": 275.8
  },
  "luminance": 0.17081
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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