#5872F0#5872F0

#5872F0 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.191 H 270.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5872F0
RGBrgb(88, 114, 240)
HSLhsl(230, 84%, 64%)
HSVhsv(230, 63%, 94%)
CMYKcmyk(63.3%, 52.5%, 0%, 5.9%)
CIE-LABlab(52.28, 29.26, -66.42)
CIE-LCHlch(52.28, 72.58, 293.78°)
OKLaboklab(59.97% 0.0027 -0.1907)
OKLCHoklch(59.97% 0.191 270.8)
XYZxyz(25.7647, 20.3983, 85.0007)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872F0 #F0D658
analogous
#58BEF0 #5872F0 #8A58F0
triadic
#5872F0 #F05872 #72F058
tetradic
#5872F0 #F058BE #F0D658 #58F08A
square
#5872F0 #F058BE #F0D658 #58F08A
split-complementary
#5872F0 #F08A58 #BEF058
monochromatic
#112EBD #2043EB #5872F0 #90A1F5 #C8D1FA

Accessibility & contrast

On white

4.13
#5872F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5872F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872F0
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872F0#FFFFFF#000000##000000
##5872F01.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F84F4
Deuteranopia (green-blind)
#0076ED
Tritanopia (blue-blind)
#0090A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5872f0;
/* rgb */ color: rgb(88, 114, 240);
/* oklch */ color: oklch(60.0% 0.191 270.8);
Tailwind
colors: {
  custom: {
    50: '#969af6',
    500: '#5872f0',
    950: '#000000',
  },
}
SCSS
$custom: #5872f0;
$custom-light: #969af6;
$custom-dark: #000000;
JSON
{
  "hex": "#5872f0",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 240
  },
  "hsl": {
    "h": 229.737,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59974,
    "c": 0.1907,
    "h": 270.8
  },
  "luminance": 0.20401
}

Semantic roles & 50–950 ramp

primary
#5872F0
secondary
#ECE3B8
accent
#BB06E0
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5872F0

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

Preview Lab → · Contrast checker → · Palette generator →

#5872F0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva