#5B5EF0#5B5EF0

#5B5EF0 is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.6% C 0.214 H 276.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5B5EF0
RGBrgb(91, 94, 240)
HSLhsl(239, 83%, 65%)
HSVhsv(239, 62%, 94%)
CMYKcmyk(62.1%, 60.8%, 0%, 5.9%)
CIE-LABlab(47.65, 41.86, -73.94)
CIE-LCHlch(47.65, 84.97, 299.52°)
OKLaboklab(56.57% 0.0232 -0.2129)
OKLCHoklch(56.57% 0.214 276.2)
XYZxyz(24.0401, 16.5189, 84.3428)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5EF0 #F0ED5B
analogous
#5BA8F0 #5B5EF0 #A35BF0
triadic
#5B5EF0 #F05B5E #5EF05B
tetradic
#5B5EF0 #F05BA8 #F0ED5B #5BF0A3
square
#5B5EF0 #F05BA8 #F0ED5B #5BF0A3
split-complementary
#5B5EF0 #F0A35B #A8F05B
monochromatic
#1115BF #2327EB #5B5EF0 #9395F5 #CBCCFA

Accessibility & contrast

On white

4.88
#5B5EF0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5B5EF0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5EF0
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5EF0#FFFFFF#000000##FFFFFF
##5B5EF01.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F5
Deuteranopia (green-blind)
#006BED
Tritanopia (blue-blind)
#00829E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b5ef0;
/* rgb */ color: rgb(91, 94, 240);
/* oklch */ color: oklch(56.6% 0.214 276.2);
Tailwind
colors: {
  custom: {
    50: '#988cf6',
    500: '#5b5ef0',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ef0;
$custom-light: #988cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ef0",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 240
  },
  "hsl": {
    "h": 238.792,
    "s": 83.24,
    "l": 64.902
  },
  "oklch": {
    "l": 0.5657,
    "c": 0.21417,
    "h": 276.2
  },
  "luminance": 0.16521
}

Semantic roles & 50–950 ramp

primary
#5B5EF0
secondary
#EDECBA
accent
#DB06E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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