#5B5AEF#5B5AEF

#5B5AEF is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.8% C 0.218 H 277.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5B5AEF
RGBrgb(91, 90, 239)
HSLhsl(240, 82%, 65%)
HSVhsv(240, 62%, 94%)
CMYKcmyk(61.9%, 62.3%, 0%, 6.3%)
CIE-LABlab(46.67, 43.91, -74.98)
CIE-LCHlch(46.67, 86.89, 300.35°)
OKLaboklab(55.83% 0.0265 -0.216)
OKLCHoklch(55.83% 0.218 277)
XYZxyz(23.5455, 15.7666, 83.4471)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AEF #EEEF5A
analogous
#5AA3EF #5B5AEF #A65AEF
triadic
#5B5AEF #EF5B5A #5AEF5B
tetradic
#5B5AEF #EF5AA3 #EEEF5A #5AEFA6
square
#5B5AEF #EF5AA3 #EEEF5A #5AEFA6
split-complementary
#5B5AEF #EFA65A #A3EF5A
monochromatic
#1312BC #2422EA #5B5AEF #9292F4 #CACAFA

Accessibility & contrast

On white

5.06
#5B5AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B5AEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AEF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AEF#FFFFFF#000000##FFFFFF
##5B5AEF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#0068EC
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5aef;
/* rgb */ color: rgb(91, 90, 239);
/* oklch */ color: oklch(55.8% 0.218 277.0);
Tailwind
colors: {
  custom: {
    50: '#9889f5',
    500: '#5b5aef',
    950: '#000000',
  },
}
SCSS
$custom: #5b5aef;
$custom-light: #9889f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5aef",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 240.403,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.55826,
    "c": 0.2176,
    "h": 277
  },
  "luminance": 0.15768
}

Semantic roles & 50–950 ramp

primary
#5B5AEF
secondary
#ECECB9
accent
#DF07DD
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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