#5B71C8#5B71C8

#5B71C8 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.136 H 270.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5B71C8
RGBrgb(91, 113, 200)
HSLhsl(228, 50%, 57%)
HSVhsv(228, 55%, 78%)
CMYKcmyk(54.5%, 43.5%, 0%, 21.6%)
CIE-LABlab(49.74, 17.17, -47.90)
CIE-LCHlch(49.74, 50.88, 289.72°)
OKLaboklab(57.3% 0.0021 -0.1362)
OKLCHoklch(57.3% 0.136 270.9)
XYZxyz(20.6414, 18.2031, 57.0582)
Luminance0.1820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71C8 #C8B25B
analogous
#5BA8C8 #5B71C8 #7C5BC8
triadic
#5B71C8 #C85B71 #71C85B
tetradic
#5B71C8 #C85BA8 #C8B25B #5BC87C
square
#5B71C8 #C85BA8 #C8B25B #5BC87C
split-complementary
#5B71C8 #C87C5B #A8C85B
monochromatic
#2A3B7E #3A51AC #5B71C8 #8999D7 #B7C0E7

Accessibility & contrast

On white

4.52
#5B71C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5B71C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71C8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71C8#FFFFFF#000000##000000
##5B71C81.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCB
Deuteranopia (green-blind)
#3E72C6
Tritanopia (blue-blind)
#218493
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5b71c8;
/* rgb */ color: rgb(91, 113, 200);
/* oklch */ color: oklch(57.3% 0.136 270.9);
Tailwind
colors: {
  custom: {
    50: '#9199d9',
    500: '#5b71c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b71c8;
$custom-light: #9199d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71c8",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 227.89,
    "s": 49.772,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.13618,
    "h": 270.9
  },
  "luminance": 0.18205
}

Semantic roles & 50–950 ramp

primary
#5B71C8
secondary
#D6CDA9
accent
#BD4FD9
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5B71C8

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

Preview Lab → · Contrast checker → · Palette generator →

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