#5B71EB#5B71EB

#5B71EB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.184 H 272.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5B71EB
RGBrgb(91, 113, 235)
HSLhsl(231, 78%, 64%)
HSVhsv(231, 61%, 92%)
CMYKcmyk(61.3%, 51.9%, 0%, 7.8%)
CIE-LABlab(51.87, 28.70, -64.29)
CIE-LCHlch(51.87, 70.40, 294.06°)
OKLaboklab(59.6% 0.0063 -0.1843)
OKLCHoklch(59.6% 0.184 272)
XYZxyz(25.2099, 20.0305, 81.1189)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71EB #EBD55B
analogous
#5BB9EB #5B71EB #8D5BEB
triadic
#5B71EB #EB5B71 #71EB5B
tetradic
#5B71EB #EB5BB9 #EBD55B #5BEB8D
square
#5B71EB #EB5BB9 #EBD55B #5BEB8D
split-complementary
#5B71EB #EB8D5B #B9EB5B
monochromatic
#162EB5 #2442E4 #5B71EB #92A0F2 #C8CFF8

Accessibility & contrast

On white

4.19
#5B71EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5B71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71EB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71EB#FFFFFF#000000##000000
##5B71EB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2682EF
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b71eb;
/* rgb */ color: rgb(91, 113, 235);
/* oklch */ color: oklch(59.6% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#9699f2',
    500: '#5b71eb',
    950: '#000000',
  },
}
SCSS
$custom: #5b71eb;
$custom-light: #9699f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71eb",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 230.833,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59603,
    "c": 0.18445,
    "h": 272
  },
  "luminance": 0.20033
}

Semantic roles & 50–950 ramp

primary
#5B71EB
secondary
#EAE2B8
accent
#BB0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5B71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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