#5871DF#5871DF

#5871DF is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.169 H 270.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5871DF
RGBrgb(88, 113, 223)
HSLhsl(229, 68%, 61%)
HSVhsv(229, 61%, 87%)
CMYKcmyk(60.5%, 49.3%, 0%, 12.5%)
CIE-LABlab(50.93, 24.17, -59.07)
CIE-LCHlch(50.93, 63.82, 292.26°)
OKLaboklab(58.6% 0.0022 -0.169)
OKLCHoklch(58.6% 0.169 270.7)
XYZxyz(23.2445, 19.2108, 72.2808)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DF #DFC658
analogous
#58B4DF #5871DF #8258DF
triadic
#5871DF #DF5871 #71DF58
tetradic
#5871DF #DF58B4 #DFC658 #58DF82
square
#5871DF #DF58B4 #DFC658 #58DF82
split-complementary
#5871DF #DF8258 #B4DF58
monochromatic
#1E369E #2848D2 #5871DF #8B9DE9 #BFC8F3

Accessibility & contrast

On white

4.34
#5871DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5871DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DF#FFFFFF#000000##000000
##5871DF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3680E3
Deuteranopia (green-blind)
#1974DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5871df;
/* rgb */ color: rgb(88, 113, 223);
/* oklch */ color: oklch(58.6% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#9399ea',
    500: '#5871df',
    950: '#000000',
  },
}
SCSS
$custom: #5871df;
$custom-light: #9399ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5871df",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 228.889,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58602,
    "c": 0.16906,
    "h": 270.7
  },
  "luminance": 0.19213
}

Semantic roles & 50–950 ramp

primary
#5871DF
secondary
#E3D9B0
accent
#AD16D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5871DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva