#5B71D5#5B71D5

#5B71D5 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.154 H 271.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5B71D5
RGBrgb(91, 113, 213)
HSLhsl(229, 59%, 60%)
HSVhsv(229, 57%, 84%)
CMYKcmyk(57.3%, 46.9%, 0%, 16.5%)
CIE-LABlab(50.50, 21.42, -54.10)
CIE-LCHlch(50.50, 58.19, 291.60°)
OKLaboklab(58.12% 0.0041 -0.1544)
OKLCHoklch(58.12% 0.154 271.5)
XYZxyz(22.2258, 18.8368, 65.4025)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71D5 #D5BF5B
analogous
#5BAED5 #5B71D5 #825BD5
triadic
#5B71D5 #D55B71 #71D55B
tetradic
#5B71D5 #D55BAE #D5BF5B #5BD582
square
#5B71D5 #D55BAE #D5BF5B #5BD582
split-complementary
#5B71D5 #D5825B #AED55B
monochromatic
#253891 #324BC1 #5B71D5 #8C9BE1 #BCC5EE

Accessibility & contrast

On white

4.40
#5B71D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5B71D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71D5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71D5#FFFFFF#000000##000000
##5B71D51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#417ED9
Deuteranopia (green-blind)
#2F73D3
Tritanopia (blue-blind)
#008799
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b71d5;
/* rgb */ color: rgb(91, 113, 213);
/* oklch */ color: oklch(58.1% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#9399e2',
    500: '#5b71d5',
    950: '#000000',
  },
}
SCSS
$custom: #5b71d5;
$custom-light: #9399e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71d5",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 213
  },
  "hsl": {
    "h": 229.18,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5812,
    "c": 0.15443,
    "h": 271.5
  },
  "luminance": 0.18838
}

Semantic roles & 50–950 ramp

primary
#5B71D5
secondary
#DED5AE
accent
#C645E2
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5B71D5

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

Preview Lab → · Contrast checker → · Palette generator →

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