#5B71E8#5B71E8

#5B71E8 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.180 H 271.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5B71E8
RGBrgb(91, 113, 232)
HSLhsl(231, 75%, 63%)
HSVhsv(231, 61%, 91%)
CMYKcmyk(60.8%, 51.3%, 0%, 9%)
CIE-LABlab(51.68, 27.71, -62.92)
CIE-LCHlch(51.68, 68.75, 293.77°)
OKLaboklab(59.39% 0.0061 -0.1803)
OKLCHoklch(59.39% 0.18 271.9)
XYZxyz(24.7802, 19.8586, 78.8555)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E8 #E8D25B
analogous
#5BB8E8 #5B71E8 #8B5BE8
triadic
#5B71E8 #E85B71 #71E85B
tetradic
#5B71E8 #E85BB8 #E8D25B #5BE88B
square
#5B71E8 #E85BB8 #E8D25B #5BE88B
split-complementary
#5B71E8 #E88B5B #B8E85B
monochromatic
#1930B0 #2543E0 #5B71E8 #919FF0 #C6CEF7

Accessibility & contrast

On white

4.22
#5B71E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5B71E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E8#FFFFFF#000000##000000
##5B71E81.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B82EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71e8;
/* rgb */ color: rgb(91, 113, 232);
/* oklch */ color: oklch(59.4% 0.180 271.9);
Tailwind
colors: {
  custom: {
    50: '#9699f0',
    500: '#5b71e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e8;
$custom-light: #9699f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e8",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 230.638,
    "s": 75.401,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.18042,
    "h": 271.9
  },
  "luminance": 0.19861
}

Semantic roles & 50–950 ramp

primary
#5B71E8
secondary
#E9E1B6
accent
#B80ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5B71E8

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

Preview Lab → · Contrast checker → · Palette generator →

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