#5B5FE5#5B5FE5

#5B5FE5 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.9% C 0.199 H 276.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5B5FE5
RGBrgb(91, 95, 229)
HSLhsl(238, 73%, 63%)
HSVhsv(238, 60%, 90%)
CMYKcmyk(60.3%, 58.5%, 0%, 10.2%)
CIE-LABlab(47.06, 37.71, -68.71)
CIE-LCHlch(47.06, 78.38, 298.76°)
OKLaboklab(55.88% 0.0227 -0.1975)
OKLCHoklch(55.88% 0.199 276.5)
XYZxyz(22.5449, 16.0640, 76.0262)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FE5 #E5E15B
analogous
#5BA4E5 #5B5FE5 #9C5BE5
triadic
#5B5FE5 #E55B5F #5FE55B
tetradic
#5B5FE5 #E55BA4 #E5E15B #5BE59C
square
#5B5FE5 #E55BA4 #E5E15B #5BE59C
split-complementary
#5B5FE5 #E59C5B #A4E55B
monochromatic
#1B1FAB #262BDD #5B5FE5 #9093ED #C5C6F6

Accessibility & contrast

On white

4.98
#5B5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B5FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FE5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FE5#FFFFFF#000000##FFFFFF
##5B5FE51.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5fe5;
/* rgb */ color: rgb(91, 95, 229);
/* oklch */ color: oklch(55.9% 0.199 276.5);
Tailwind
colors: {
  custom: {
    50: '#968cee',
    500: '#5b5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fe5;
$custom-light: #968cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fe5",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 238.261,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55877,
    "c": 0.19883,
    "h": 276.5
  },
  "luminance": 0.16066
}

Semantic roles & 50–950 ramp

primary
#5B5FE5
secondary
#E7E5B5
accent
#CF11D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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