#5B5BE9#5B5BE9

#5B5BE9 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.5% C 0.209 H 277.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5B5BE9
RGBrgb(91, 91, 233)
HSLhsl(240, 76%, 64%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.9%, 60.9%, 0%, 8.6%)
CIE-LABlab(46.43, 41.39, -71.99)
CIE-LCHlch(46.43, 83.04, 299.90°)
OKLaboklab(55.51% 0.026 -0.2072)
OKLCHoklch(55.51% 0.209 277.2)
XYZxyz(22.7587, 15.5877, 78.8844)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BE9 #E9E95B
analogous
#5BA2E9 #5B5BE9 #A25BE9
triadic
#5B5BE9 #E95B5B #5BE95B
tetradic
#5B5BE9 #E95BA2 #E9E95B #5BE9A2
square
#5B5BE9 #E95BA2 #E9E95B #5BE9A2
split-complementary
#5B5BE9 #E9A25B #A2E95B
monochromatic
#1818B2 #2525E2 #5B5BE9 #9191F0 #C7C7F7

Accessibility & contrast

On white

5.10
#5B5BE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5B5BE9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BE9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BE9#FFFFFF#000000##FFFFFF
##5B5BE91.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EE
Deuteranopia (green-blind)
#0068E6
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5be9;
/* rgb */ color: rgb(91, 91, 233);
/* oklch */ color: oklch(55.5% 0.209 277.2);
Tailwind
colors: {
  custom: {
    50: '#978af1',
    500: '#5b5be9',
    950: '#000000',
  },
}
SCSS
$custom: #5b5be9;
$custom-light: #978af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5be9",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 233
  },
  "hsl": {
    "h": 240,
    "s": 76.344,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55507,
    "c": 0.20883,
    "h": 277.2
  },
  "luminance": 0.1559
}

Semantic roles & 50–950 ramp

primary
#5B5BE9
secondary
#E9E9B7
accent
#D90DD9
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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