#5870F2#5870F2

#5870F2 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.196 H 271.4°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5870F2
RGBrgb(88, 112, 242)
HSLhsl(231, 86%, 65%)
HSVhsv(231, 64%, 95%)
CMYKcmyk(63.6%, 53.7%, 0%, 5.1%)
CIE-LABlab(51.92, 31.16, -68.13)
CIE-LCHlch(51.92, 74.92, 294.58°)
OKLaboklab(59.74% 0.0046 -0.1957)
OKLCHoklch(59.74% 0.196 271.4)
XYZxyz(25.8403, 20.0716, 86.4996)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5870F2 #F2DA58
analogous
#58BDF2 #5870F2 #8D58F2
triadic
#5870F2 #F25870 #70F258
tetradic
#5870F2 #F258BD #F2DA58 #58F28D
square
#5870F2 #F258BD #F2DA58 #58F28D
split-complementary
#5870F2 #F28D58 #BDF258
monochromatic
#0F2BC1 #1F3FEE #5870F2 #91A1F6 #CAD1FB

Accessibility & contrast

On white

4.19
#5870F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5870F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5870F2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5870F2#FFFFFF#000000##000000
##5870F21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B83F7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5870f2;
/* rgb */ color: rgb(88, 112, 242);
/* oklch */ color: oklch(59.7% 0.196 271.4);
Tailwind
colors: {
  custom: {
    50: '#9698f7',
    500: '#5870f2',
    950: '#000000',
  },
}
SCSS
$custom: #5870f2;
$custom-light: #9698f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5870f2",
  "rgb": {
    "r": 88,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 230.649,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59741,
    "c": 0.19578,
    "h": 271.4
  },
  "luminance": 0.20074
}

Semantic roles & 50–950 ramp

primary
#5870F2
secondary
#EDE5B8
accent
#BF03E2
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5870F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5870F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva