#5B5DEF#5B5DEF

#5B5DEF is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.3% C 0.214 H 276.5°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B5DEF
RGBrgb(91, 93, 239)
HSLhsl(239, 82%, 65%)
HSVhsv(239, 62%, 94%)
CMYKcmyk(61.9%, 61.1%, 0%, 6.3%)
CIE-LABlab(47.34, 42.13, -73.88)
CIE-LCHlch(47.34, 85.05, 299.70°)
OKLaboklab(56.32% 0.0241 -0.2127)
OKLCHoklch(56.32% 0.214 276.5)
XYZxyz(23.8037, 16.2829, 83.5331)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DEF #EFED5B
analogous
#5BA7EF #5B5DEF #A35BEF
triadic
#5B5DEF #EF5B5D #5DEF5B
tetradic
#5B5DEF #EF5BA7 #EFED5B #5BEFA3
square
#5B5DEF #EF5BA7 #EFED5B #5BEFA3
split-complementary
#5B5DEF #EFA35B #A7EF5B
monochromatic
#1215BD #2326EA #5B5DEF #9394F4 #CBCBFA

Accessibility & contrast

On white

4.93
#5B5DEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5B5DEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DEF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DEF#FFFFFF#000000##FFFFFF
##5B5DEF1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#006AEC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5def;
/* rgb */ color: rgb(91, 93, 239);
/* oklch */ color: oklch(56.3% 0.214 276.5);
Tailwind
colors: {
  custom: {
    50: '#988bf5',
    500: '#5b5def',
    950: '#000000',
  },
}
SCSS
$custom: #5b5def;
$custom-light: #988bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5def",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 239.189,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.21408,
    "h": 276.5
  },
  "luminance": 0.16285
}

Semantic roles & 50–950 ramp

primary
#5B5DEF
secondary
#ECECBA
accent
#DC07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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