#5B71CE#5B71CE

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

Color values

HEX#5B71CE
RGBrgb(91, 113, 206)
HSLhsl(229, 54%, 58%)
HSVhsv(229, 56%, 81%)
CMYKcmyk(55.8%, 45.1%, 0%, 19.2%)
CIE-LABlab(50.08, 19.13, -50.78)
CIE-LCHlch(50.08, 54.26, 290.64°)
OKLaboklab(57.67% 0.0031 -0.1446)
OKLCHoklch(57.67% 0.145 271.2)
XYZxyz(21.3564, 18.4891, 60.8239)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71CE #CEB85B
analogous
#5BAACE #5B71CE #7E5BCE
triadic
#5B71CE #CE5B71 #71CE5B
tetradic
#5B71CE #CE5BAA #CEB85B #5BCE7E
square
#5B71CE #CE5BAA #CEB85B #5BCE7E
split-complementary
#5B71CE #CE7E5B #AACE5B
monochromatic
#283A86 #364FB6 #5B71CE #8A9ADC #B9C3EA

Accessibility & contrast

On white

4.47
#5B71CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5B71CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71CE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71CE#FFFFFF#000000##000000
##5B71CE1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD1
Deuteranopia (green-blind)
#3872CC
Tritanopia (blue-blind)
#178695
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b71ce;
/* rgb */ color: rgb(91, 113, 206);
/* oklch */ color: oklch(57.7% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#9299dd',
    500: '#5b71ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b71ce;
$custom-light: #9299dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71ce",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 228.522,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57673,
    "c": 0.14464,
    "h": 271.2
  },
  "luminance": 0.18491
}

Semantic roles & 50–950 ramp

primary
#5B71CE
secondary
#D9D1AB
accent
#C14ADD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5B71CE

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

Preview Lab → · Contrast checker → · Palette generator →

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