#5B71DC#5B71DC

#5B71DC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.164 H 271.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5B71DC
RGBrgb(91, 113, 220)
HSLhsl(230, 65%, 61%)
HSVhsv(230, 59%, 86%)
CMYKcmyk(58.6%, 48.6%, 0%, 13.7%)
CIE-LABlab(50.92, 23.73, -57.38)
CIE-LCHlch(50.92, 62.10, 292.47°)
OKLaboklab(58.58% 0.0049 -0.164)
OKLCHoklch(58.58% 0.164 271.7)
XYZxyz(23.1335, 19.1999, 70.1832)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71DC #DCC65B
analogous
#5BB2DC #5B71DC #855BDC
triadic
#5B71DC #DC5B71 #71DC5B
tetradic
#5B71DC #DC5BB2 #DCC65B #5BDC85
square
#5B71DC #DC5BB2 #DCC65B #5BDC85
split-complementary
#5B71DC #DC855B #B2DC5B
monochromatic
#21369B #2C48CE #5B71DC #8D9DE7 #C0C8F2

Accessibility & contrast

On white

4.34
#5B71DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5B71DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71DC#FFFFFF#000000##000000
##5B71DC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FE0
Deuteranopia (green-blind)
#2474DA
Tritanopia (blue-blind)
#00899C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b71dc;
/* rgb */ color: rgb(91, 113, 220);
/* oklch */ color: oklch(58.6% 0.164 271.7);
Tailwind
colors: {
  custom: {
    50: '#9499e7',
    500: '#5b71dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b71dc;
$custom-light: #9499e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71dc",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 229.767,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58579,
    "c": 0.1641,
    "h": 271.7
  },
  "luminance": 0.19202
}

Semantic roles & 50–950 ramp

primary
#5B71DC
secondary
#E2D9B1
accent
#AE19CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71DC

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

Preview Lab → · Contrast checker → · Palette generator →

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