#5B71EF#5B71EF

#5B71EF is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.9% C 0.190 H 272.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5B71EF
RGBrgb(91, 113, 239)
HSLhsl(231, 82%, 65%)
HSVhsv(231, 62%, 94%)
CMYKcmyk(61.9%, 52.7%, 0%, 6.3%)
CIE-LABlab(52.13, 30.03, -66.10)
CIE-LCHlch(52.13, 72.60, 294.44°)
OKLaboklab(59.88% 0.0066 -0.1897)
OKLCHoklch(59.88% 0.19 272)
XYZxyz(25.7943, 20.2642, 84.1967)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71EF #EFD95B
analogous
#5BBBEF #5B71EF #8F5BEF
triadic
#5B71EF #EF5B71 #71EF5B
tetradic
#5B71EF #EF5BBB #EFD95B #5BEF8F
square
#5B71EF #EF5BBB #EFD95B #5BEF8F
split-complementary
#5B71EF #EF8F5B #BBEF5B
monochromatic
#122CBD #2341EA #5B71EF #93A1F4 #CBD2FA

Accessibility & contrast

On white

4.16
#5B71EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5B71EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71EF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71EF#FFFFFF#000000##000000
##5B71EF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E83F3
Deuteranopia (green-blind)
#0076EC
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b71ef;
/* rgb */ color: rgb(91, 113, 239);
/* oklch */ color: oklch(59.9% 0.190 272.0);
Tailwind
colors: {
  custom: {
    50: '#9799f5',
    500: '#5b71ef',
    950: '#000000',
  },
}
SCSS
$custom: #5b71ef;
$custom-light: #9799f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71ef",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 231.081,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59884,
    "c": 0.18978,
    "h": 272
  },
  "luminance": 0.20266
}

Semantic roles & 50–950 ramp

primary
#5B71EF
secondary
#ECE5BA
accent
#BF07DF
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5B71EF

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

Preview Lab → · Contrast checker → · Palette generator →

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