#5B5FEB#5B5FEB

#5B5FEB is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.3% C 0.207 H 276.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5B5FEB
RGBrgb(91, 95, 235)
HSLhsl(238, 78%, 64%)
HSVhsv(238, 61%, 92%)
CMYKcmyk(61.3%, 59.6%, 0%, 7.8%)
CIE-LABlab(47.50, 39.65, -71.37)
CIE-LCHlch(47.50, 81.65, 299.05°)
OKLaboklab(56.34% 0.0225 -0.2053)
OKLCHoklch(56.34% 0.207 276.3)
XYZxyz(23.3971, 16.4049, 80.5146)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FEB #EBE75B
analogous
#5BA7EB #5B5FEB #9F5BEB
triadic
#5B5FEB #EB5B5F #5FEB5B
tetradic
#5B5FEB #EB5BA7 #EBE75B #5BEB9F
square
#5B5FEB #EB5BA7 #EBE75B #5BEB9F
split-complementary
#5B5FEB #EB9F5B #A7EB5B
monochromatic
#161BB5 #242AE4 #5B5FEB #9294F2 #C8C9F8

Accessibility & contrast

On white

4.90
#5B5FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5B5FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FEB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FEB#FFFFFF#000000##FFFFFF
##5B5FEB1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b5feb;
/* rgb */ color: rgb(91, 95, 235);
/* oklch */ color: oklch(56.3% 0.207 276.3);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5b5feb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5feb;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5feb",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 238.333,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56344,
    "c": 0.20658,
    "h": 276.3
  },
  "luminance": 0.16407
}

Semantic roles & 50–950 ramp

primary
#5B5FEB
secondary
#EAE9B8
accent
#D50BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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