#5B71CF#5B71CF

#5B71CF is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.7% C 0.146 H 271.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5B71CF
RGBrgb(91, 113, 207)
HSLhsl(229, 55%, 58%)
HSVhsv(229, 56%, 81%)
CMYKcmyk(56%, 45.4%, 0%, 18.8%)
CIE-LABlab(50.14, 19.45, -51.26)
CIE-LCHlch(50.14, 54.82, 290.78°)
OKLaboklab(57.74% 0.0032 -0.146)
OKLCHoklch(57.74% 0.146 271.3)
XYZxyz(21.4783, 18.5378, 61.4657)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71CF #CFB95B
analogous
#5BABCF #5B71CF #7F5BCF
triadic
#5B71CF #CF5B71 #71CF5B
tetradic
#5B71CF #CF5BAB #CFB95B #5BCF7F
square
#5B71CF #CF5BAB #CFB95B #5BCF7F
split-complementary
#5B71CF #CF7F5B #ABCF5B
monochromatic
#283A88 #364EB7 #5B71CF #8A9ADD #BAC3EB

Accessibility & contrast

On white

4.46
#5B71CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5B71CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71CF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71CF#FFFFFF#000000##000000
##5B71CF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#467DD3
Deuteranopia (green-blind)
#3773CD
Tritanopia (blue-blind)
#148696
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b71cf;
/* rgb */ color: rgb(91, 113, 207);
/* oklch */ color: oklch(57.7% 0.146 271.3);
Tailwind
colors: {
  custom: {
    50: '#9299de',
    500: '#5b71cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b71cf;
$custom-light: #9299de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71cf",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 228.621,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57736,
    "c": 0.14606,
    "h": 271.3
  },
  "luminance": 0.18539
}

Semantic roles & 50–950 ramp

primary
#5B71CF
secondary
#DAD1AC
accent
#C24ADE
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5B71CF

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

Preview Lab → · Contrast checker → · Palette generator →

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