#5B71D8#5B71D8

#5B71D8 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.3% C 0.159 H 271.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5B71D8
RGBrgb(91, 113, 216)
HSLhsl(229, 62%, 60%)
HSVhsv(229, 58%, 85%)
CMYKcmyk(57.9%, 47.7%, 0%, 15.3%)
CIE-LABlab(50.68, 22.41, -55.51)
CIE-LCHlch(50.68, 59.87, 291.98°)
OKLaboklab(58.32% 0.0045 -0.1585)
OKLCHoklch(58.32% 0.159 271.6)
XYZxyz(22.6101, 18.9905, 67.4265)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71D8 #D8C25B
analogous
#5BAFD8 #5B71D8 #835BD8
triadic
#5B71D8 #D85B71 #71D85B
tetradic
#5B71D8 #D85BAF #D8C25B #5BD883
square
#5B71D8 #D85BAF #D8C25B #5BD883
split-complementary
#5B71D8 #D8835B #AFD85B
monochromatic
#233795 #2F4AC7 #5B71D8 #8C9CE4 #BEC7F0

Accessibility & contrast

On white

4.38
#5B71D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5B71D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71D8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71D8#FFFFFF#000000##000000
##5B71D81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDC
Deuteranopia (green-blind)
#2B73D6
Tritanopia (blue-blind)
#00889A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b71d8;
/* rgb */ color: rgb(91, 113, 216);
/* oklch */ color: oklch(58.3% 0.159 271.6);
Tailwind
colors: {
  custom: {
    50: '#9399e5',
    500: '#5b71d8',
    950: '#000000',
  },
}
SCSS
$custom: #5b71d8;
$custom-light: #9399e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71d8",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 216
  },
  "hsl": {
    "h": 229.44,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58315,
    "c": 0.15859,
    "h": 271.6
  },
  "luminance": 0.18992
}

Semantic roles & 50–950 ramp

primary
#5B71D8
secondary
#DFD7AF
accent
#AB1CC9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71D8

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

Preview Lab → · Contrast checker → · Palette generator →

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