#5B71BF#5B71BF

#5B71BF is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.8% C 0.123 H 270.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5B71BF
RGBrgb(91, 113, 191)
HSLhsl(227, 44%, 55%)
HSVhsv(227, 52%, 75%)
CMYKcmyk(52.4%, 40.8%, 0%, 25.1%)
CIE-LABlab(49.25, 14.27, -43.52)
CIE-LCHlch(49.25, 45.80, 288.15°)
OKLaboklab(56.76% 0.0005 -0.1233)
OKLCHoklch(56.76% 0.123 270.2)
XYZxyz(19.6204, 17.7947, 51.6809)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71BF #BFA95B
analogous
#5BA3BF #5B71BF #775BBF
triadic
#5B71BF #BF5B71 #71BF5B
tetradic
#5B71BF #BF5BA3 #BFA95B #5BBF77
square
#5B71BF #BF5BA3 #BFA95B #5BBF77
split-complementary
#5B71BF #BF775B #A3BF5B
monochromatic
#2D3C73 #3E539F #5B71BF #8797D0 #B3BDE1

Accessibility & contrast

On white

4.61
#5B71BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5B71BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B71BF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71BF#FFFFFF#000000##FFFFFF
##5B71BF1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#517AC2
Deuteranopia (green-blind)
#4671BD
Tritanopia (blue-blind)
#2C828F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b71bf;
/* rgb */ color: rgb(91, 113, 191);
/* oklch */ color: oklch(56.8% 0.123 270.2);
Tailwind
colors: {
  custom: {
    50: '#9099d3',
    500: '#5b71bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b71bf;
$custom-light: #9099d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71bf",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 226.8,
    "s": 43.86,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5676,
    "c": 0.12333,
    "h": 270.2
  },
  "luminance": 0.17796
}

Semantic roles & 50–950 ramp

primary
#5B71BF
secondary
#D0C7A6
accent
#B854D4
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5B71BF

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

Preview Lab → · Contrast checker → · Palette generator →

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