#5B5BEA#5B5BEA

#5B5BEA is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.6% C 0.210 H 277.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5B5BEA
RGBrgb(91, 91, 234)
HSLhsl(240, 77%, 64%)
HSVhsv(240, 61%, 92%)
CMYKcmyk(61.1%, 61.1%, 0%, 8.2%)
CIE-LABlab(46.51, 41.72, -72.43)
CIE-LCHlch(46.51, 83.58, 299.94°)
OKLaboklab(55.59% 0.026 -0.2085)
OKLCHoklch(55.59% 0.21 277.1)
XYZxyz(22.9019, 15.6450, 79.6389)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BEA #EAEA5B
analogous
#5BA2EA #5B5BEA #A25BEA
triadic
#5B5BEA #EA5B5B #5BEA5B
tetradic
#5B5BEA #EA5BA2 #EAEA5B #5BEAA2
square
#5B5BEA #EA5BA2 #EAEA5B #5BEAA2
split-complementary
#5B5BEA #EAA25B #A2EA5B
monochromatic
#1717B4 #2525E3 #5B5BEA #9191F1 #C8C8F8

Accessibility & contrast

On white

5.09
#5B5BEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5B5BEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BEA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BEA#FFFFFF#000000##FFFFFF
##5B5BEA1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5bea;
/* rgb */ color: rgb(91, 91, 234);
/* oklch */ color: oklch(55.6% 0.210 277.1);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5b5bea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bea;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bea",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 240,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55587,
    "c": 0.2101,
    "h": 277.1
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#5B5BEA
secondary
#EAEAB7
accent
#DA0CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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