#5B5ECA#5B5ECA

#5B5ECA is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.7% C 0.164 H 278.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5B5ECA
RGBrgb(91, 94, 202)
HSLhsl(238, 51%, 57%)
HSVhsv(238, 55%, 79%)
CMYKcmyk(55%, 53.5%, 0%, 20.8%)
CIE-LABlab(44.93, 29.59, -56.76)
CIE-LCHlch(44.93, 64.01, 297.53°)
OKLaboklab(53.7% 0.0232 -0.1624)
OKLCHoklch(53.7% 0.164 278.1)
XYZxyz(18.9744, 14.4926, 57.6632)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5ECA #CAC75B
analogous
#5B96CA #5B5ECA #8F5BCA
triadic
#5B5ECA #CA5B5E #5ECA5B
tetradic
#5B5ECA #CA5B96 #CAC75B #5BCA8F
square
#5B5ECA #CA5B96 #CAC75B #5BCA8F
split-complementary
#5B5ECA #CA8F5B #96CA5B
monochromatic
#2A2C81 #393CAF #5B5ECA #898BD9 #B8B9E8

Accessibility & contrast

On white

5.39
#5B5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5B5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5ECA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5ECA#FFFFFF#000000##FFFFFF
##5B5ECA1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6FCE
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#23778B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b5eca;
/* rgb */ color: rgb(91, 94, 202);
/* oklch */ color: oklch(53.7% 0.164 278.1);
Tailwind
colors: {
  custom: {
    50: '#928bdb',
    500: '#5b5eca',
    950: '#000000',
  },
}
SCSS
$custom: #5b5eca;
$custom-light: #928bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5eca",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 238.378,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53698,
    "c": 0.16403,
    "h": 278.1
  },
  "luminance": 0.14494
}

Semantic roles & 50–950 ramp

primary
#5B5ECA
secondary
#D7D6AA
accent
#D74DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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