#5B5EDA#5B5EDA

#5B5EDA is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.186 H 277.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5B5EDA
RGBrgb(91, 94, 218)
HSLhsl(239, 63%, 61%)
HSVhsv(239, 58%, 85%)
CMYKcmyk(58.3%, 56.9%, 0%, 14.5%)
CIE-LABlab(46.03, 34.75, -64.14)
CIE-LCHlch(46.03, 72.95, 298.45°)
OKLaboklab(54.86% 0.0237 -0.1841)
OKLCHoklch(54.86% 0.186 277.3)
XYZxyz(20.9679, 15.2900, 68.1624)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5EDA #DAD75B
analogous
#5B9DDA #5B5EDA #985BDA
triadic
#5B5EDA #DA5B5E #5EDA5B
tetradic
#5B5EDA #DA5B9D #DAD75B #5BDA98
square
#5B5EDA #DA5B9D #DAD75B #5BDA98
split-complementary
#5B5EDA #DA985B #9DDA5B
monochromatic
#222598 #2E31CA #5B5EDA #8D8FE5 #BFC0F1

Accessibility & contrast

On white

5.17
#5B5EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5B5EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5EDA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5EDA#FFFFFF#000000##FFFFFF
##5B5EDA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DE
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5eda;
/* rgb */ color: rgb(91, 94, 218);
/* oklch */ color: oklch(54.9% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#958be6',
    500: '#5b5eda',
    950: '#000000',
  },
}
SCSS
$custom: #5b5eda;
$custom-light: #958be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5eda",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 218
  },
  "hsl": {
    "h": 238.583,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.18562,
    "h": 277.3
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#5B5EDA
secondary
#E1DFB0
accent
#C71BCB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5B5EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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