#5B71CA#5B71CA

#5B71CA is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.139 H 271.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5B71CA
RGBrgb(91, 113, 202)
HSLhsl(228, 51%, 57%)
HSVhsv(228, 55%, 79%)
CMYKcmyk(55%, 44.1%, 0%, 20.8%)
CIE-LABlab(49.85, 17.82, -48.86)
CIE-LCHlch(49.85, 52.01, 290.04°)
OKLaboklab(57.42% 0.0025 -0.139)
OKLCHoklch(57.42% 0.139 271)
XYZxyz(20.8767, 18.2972, 58.2973)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71CA #CAB45B
analogous
#5BA9CA #5B71CA #7C5BCA
triadic
#5B71CA #CA5B71 #71CA5B
tetradic
#5B71CA #CA5BA9 #CAB45B #5BCA7C
square
#5B71CA #CA5BA9 #CAB45B #5BCA7C
split-complementary
#5B71CA #CA7C5B #A9CA5B
monochromatic
#2A3B81 #3950AF #5B71CA #8999D9 #B8C1E8

Accessibility & contrast

On white

4.51
#5B71CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5B71CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71CA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71CA#FFFFFF#000000##000000
##5B71CA1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCD
Deuteranopia (green-blind)
#3C72C8
Tritanopia (blue-blind)
#1E8594
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b71ca;
/* rgb */ color: rgb(91, 113, 202);
/* oklch */ color: oklch(57.4% 0.139 271.0);
Tailwind
colors: {
  custom: {
    50: '#9199da',
    500: '#5b71ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b71ca;
$custom-light: #9199da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71ca",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 228.108,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57424,
    "c": 0.13901,
    "h": 271
  },
  "luminance": 0.18299
}

Semantic roles & 50–950 ramp

primary
#5B71CA
secondary
#D7CEAA
accent
#BF4DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5B71CA

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

Preview Lab → · Contrast checker → · Palette generator →

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