#5B71E2#5B71E2

#5B71E2 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.172 H 271.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5B71E2
RGBrgb(91, 113, 226)
HSLhsl(230, 70%, 62%)
HSVhsv(230, 60%, 89%)
CMYKcmyk(59.7%, 50%, 0%, 11.4%)
CIE-LABlab(51.29, 25.72, -60.17)
CIE-LCHlch(51.29, 65.43, 293.14°)
OKLaboklab(58.98% 0.0055 -0.1722)
OKLCHoklch(58.98% 0.172 271.8)
XYZxyz(23.9424, 19.5235, 74.4435)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E2 #E2CC5B
analogous
#5BB5E2 #5B71E2 #885BE2
triadic
#5B71E2 #E25B71 #71E25B
tetradic
#5B71E2 #E25BB5 #E2CC5B #5BE288
square
#5B71E2 #E25BB5 #E2CC5B #5BE288
split-complementary
#5B71E2 #E2885B #B5E25B
monochromatic
#1D33A5 #2744D9 #5B71E2 #8F9EEB #C3CBF4

Accessibility & contrast

On white

4.28
#5B71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5B71E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E2#FFFFFF#000000##000000
##5B71E21.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3480E6
Deuteranopia (green-blind)
#1475E0
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b71e2;
/* rgb */ color: rgb(91, 113, 226);
/* oklch */ color: oklch(59.0% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#9599ec',
    500: '#5b71e2',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e2;
$custom-light: #9599ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e2",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 230.222,
    "s": 69.948,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.17231,
    "h": 271.8
  },
  "luminance": 0.19525
}

Semantic roles & 50–950 ramp

primary
#5B71E2
secondary
#E5DDB4
accent
#B314D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71E2

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

Preview Lab → · Contrast checker → · Palette generator →

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