#5B71DF#5B71DF

#5B71DF is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.168 H 271.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5B71DF
RGBrgb(91, 113, 223)
HSLhsl(230, 67%, 62%)
HSVhsv(230, 59%, 87%)
CMYKcmyk(59.2%, 49.3%, 0%, 12.5%)
CIE-LABlab(51.11, 24.72, -58.78)
CIE-LCHlch(51.11, 63.77, 292.81°)
OKLaboklab(58.78% 0.0052 -0.1681)
OKLCHoklch(58.78% 0.168 271.8)
XYZxyz(23.5344, 19.3602, 72.2944)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71DF #DFC95B
analogous
#5BB3DF #5B71DF #875BDF
triadic
#5B71DF #DF5B71 #71DF5B
tetradic
#5B71DF #DF5BB3 #DFC95B #5BDF87
square
#5B71DF #DF5BB3 #DFC95B #5BDF87
split-complementary
#5B71DF #DF875B #B3DF5B
monochromatic
#1F35A0 #2946D4 #5B71DF #8E9DE9 #C1CAF3

Accessibility & contrast

On white

4.31
#5B71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5B71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71DF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71DF#FFFFFF#000000##000000
##5B71DF1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3780E3
Deuteranopia (green-blind)
#1D74DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b71df;
/* rgb */ color: rgb(91, 113, 223);
/* oklch */ color: oklch(58.8% 0.168 271.8);
Tailwind
colors: {
  custom: {
    50: '#9499ea',
    500: '#5b71df',
    950: '#000000',
  },
}
SCSS
$custom: #5b71df;
$custom-light: #9499ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71df",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 230,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5878,
    "c": 0.16821,
    "h": 271.8
  },
  "luminance": 0.19362
}

Semantic roles & 50–950 ramp

primary
#5B71DF
secondary
#E3DBB2
accent
#B016CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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