#5B71EA#5B71EA

#5B71EA is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.183 H 271.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5B71EA
RGBrgb(91, 113, 234)
HSLhsl(231, 77%, 64%)
HSVhsv(231, 61%, 92%)
CMYKcmyk(61.1%, 51.7%, 0%, 8.2%)
CIE-LABlab(51.81, 28.37, -63.83)
CIE-LCHlch(51.81, 69.85, 293.96°)
OKLaboklab(59.53% 0.0062 -0.183)
OKLCHoklch(59.53% 0.183 271.9)
XYZxyz(25.0658, 19.9728, 80.3602)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71EA #EAD45B
analogous
#5BB8EA #5B71EA #8C5BEA
triadic
#5B71EA #EA5B71 #71EA5B
tetradic
#5B71EA #EA5BB8 #EAD45B #5BEA8C
square
#5B71EA #EA5BB8 #EAD45B #5BEA8C
split-complementary
#5B71EA #EA8C5B #B8EA5B
monochromatic
#172FB4 #2542E3 #5B71EA #91A0F1 #C8CFF8

Accessibility & contrast

On white

4.20
#5B71EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5B71EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71EA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71EA#FFFFFF#000000##000000
##5B71EA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2882EE
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71ea;
/* rgb */ color: rgb(91, 113, 234);
/* oklch */ color: oklch(59.5% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#9699f1',
    500: '#5b71ea',
    950: '#000000',
  },
}
SCSS
$custom: #5b71ea;
$custom-light: #9699f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71ea",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 230.769,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59533,
    "c": 0.18311,
    "h": 271.9
  },
  "luminance": 0.19975
}

Semantic roles & 50–950 ramp

primary
#5B71EA
secondary
#EAE2B7
accent
#BA0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5B71EA

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

Preview Lab → · Contrast checker → · Palette generator →

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