#5B5BEB#5B5BEB

#5B5BEB is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.7% C 0.211 H 277.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5BEB
RGBrgb(91, 91, 235)
HSLhsl(240, 78%, 64%)
HSVhsv(240, 61%, 92%)
CMYKcmyk(61.3%, 61.3%, 0%, 7.8%)
CIE-LABlab(46.58, 42.04, -72.87)
CIE-LCHlch(46.58, 84.12, 299.98°)
OKLaboklab(55.67% 0.0259 -0.2098)
OKLCHoklch(55.67% 0.211 277)
XYZxyz(23.0460, 15.7027, 80.3976)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BEB #EBEB5B
analogous
#5BA3EB #5B5BEB #A35BEB
triadic
#5B5BEB #EB5B5B #5BEB5B
tetradic
#5B5BEB #EB5BA3 #EBEB5B #5BEBA3
square
#5B5BEB #EB5BA3 #EBEB5B #5BEBA3
split-complementary
#5B5BEB #EBA35B #A3EB5B
monochromatic
#1616B5 #2424E4 #5B5BEB #9292F2 #C8C8F8

Accessibility & contrast

On white

5.07
#5B5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B5BEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BEB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BEB#FFFFFF#000000##FFFFFF
##5B5BEB1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0068E8
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5beb;
/* rgb */ color: rgb(91, 91, 235);
/* oklch */ color: oklch(55.7% 0.211 277.0);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5b5beb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5beb;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5beb",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 240,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55667,
    "c": 0.21138,
    "h": 277
  },
  "luminance": 0.15704
}

Semantic roles & 50–950 ramp

primary
#5B5BEB
secondary
#EAEAB8
accent
#DB0BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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