#5B5BF2#5B5BF2

#5B5BF2 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.220 H 276.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5B5BF2
RGBrgb(91, 91, 242)
HSLhsl(240, 85%, 65%)
HSVhsv(240, 62%, 95%)
CMYKcmyk(62.4%, 62.4%, 0%, 5.1%)
CIE-LABlab(47.13, 44.28, -75.91)
CIE-LCHlch(47.13, 87.88, 300.25°)
OKLaboklab(56.23% 0.0255 -0.2187)
OKLCHoklch(56.23% 0.22 276.7)
XYZxyz(24.0773, 16.1152, 85.8289)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BF2 #F2F25B
analogous
#5BA6F2 #5B5BF2 #A65BF2
triadic
#5B5BF2 #F25B5B #5BF25B
tetradic
#5B5BF2 #F25BA6 #F2F25B #5BF2A6
square
#5B5BF2 #F25BA6 #F2F25B #5BF2A6
split-complementary
#5B5BF2 #F2A65B #A6F25B
monochromatic
#0F0FC3 #2222EE #5B5BF2 #9494F6 #CCCCFB

Accessibility & contrast

On white

4.97
#5B5BF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5B5BF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BF2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BF2#FFFFFF#000000##FFFFFF
##5B5BF21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#0069EF
Tritanopia (blue-blind)
#00819E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5bf2;
/* rgb */ color: rgb(91, 91, 242);
/* oklch */ color: oklch(56.2% 0.220 276.7);
Tailwind
colors: {
  custom: {
    50: '#998af7',
    500: '#5b5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bf2;
$custom-light: #998af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bf2",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 240,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56234,
    "c": 0.2202,
    "h": 276.7
  },
  "luminance": 0.16117
}

Semantic roles & 50–950 ramp

primary
#5B5BF2
secondary
#EEEEBB
accent
#E204E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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