#5B71CC#5B71CC

#5B71CC is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.5% C 0.142 H 271.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5B71CC
RGBrgb(91, 113, 204)
HSLhsl(228, 53%, 58%)
HSVhsv(228, 55%, 80%)
CMYKcmyk(55.4%, 44.6%, 0%, 20%)
CIE-LABlab(49.97, 18.47, -49.82)
CIE-LCHlch(49.97, 53.14, 290.35°)
OKLaboklab(57.55% 0.0028 -0.1418)
OKLCHoklch(57.55% 0.142 271.1)
XYZxyz(21.1150, 18.3925, 59.5525)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71CC #CCB65B
analogous
#5BA9CC #5B71CC #7E5BCC
triadic
#5B71CC #CC5B71 #71CC5B
tetradic
#5B71CC #CC5BA9 #CCB65B #5BCC7E
square
#5B71CC #CC5BA9 #CCB65B #5BCC7E
split-complementary
#5B71CC #CC7E5B #A9CC5B
monochromatic
#293B84 #374FB2 #5B71CC #8A99DB #B8C2E9

Accessibility & contrast

On white

4.49
#5B71CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5B71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71CC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71CC#FFFFFF#000000##000000
##5B71CC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCF
Deuteranopia (green-blind)
#3A72CA
Tritanopia (blue-blind)
#1B8594
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b71cc;
/* rgb */ color: rgb(91, 113, 204);
/* oklch */ color: oklch(57.5% 0.142 271.1);
Tailwind
colors: {
  custom: {
    50: '#9199dc',
    500: '#5b71cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b71cc;
$custom-light: #9199dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71cc",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 228.319,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57548,
    "c": 0.14183,
    "h": 271.1
  },
  "luminance": 0.18394
}

Semantic roles & 50–950 ramp

primary
#5B71CC
secondary
#D8CFAB
accent
#C04CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5B71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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