#5872EF#5872EF

#5872EF is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.9% C 0.189 H 270.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5872EF
RGBrgb(88, 114, 239)
HSLhsl(230, 83%, 64%)
HSVhsv(230, 63%, 94%)
CMYKcmyk(63.2%, 52.3%, 0%, 6.3%)
CIE-LABlab(52.22, 28.93, -65.97)
CIE-LCHlch(52.22, 72.04, 293.68°)
OKLaboklab(59.9% 0.0027 -0.1893)
OKLCHoklch(59.9% 0.189 270.8)
XYZxyz(25.6166, 20.3391, 84.2205)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872EF #EFD558
analogous
#58BEEF #5872EF #8A58EF
triadic
#5872EF #EF5872 #72EF58
tetradic
#5872EF #EF58BE #EFD558 #58EF8A
square
#5872EF #EF58BE #EFD558 #58EF8A
split-complementary
#5872EF #EF8A58 #BEEF58
monochromatic
#122FBB #2043EA #5872EF #90A1F4 #C8D0FA

Accessibility & contrast

On white

4.14
#5872EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#5872EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872EF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872EF#FFFFFF#000000##000000
##5872EF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2184F3
Deuteranopia (green-blind)
#0076EC
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5872ef;
/* rgb */ color: rgb(88, 114, 239);
/* oklch */ color: oklch(59.9% 0.189 270.8);
Tailwind
colors: {
  custom: {
    50: '#959af5',
    500: '#5872ef',
    950: '#000000',
  },
}
SCSS
$custom: #5872ef;
$custom-light: #959af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5872ef",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 229.669,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59903,
    "c": 0.18937,
    "h": 270.8
  },
  "luminance": 0.20341
}

Semantic roles & 50–950 ramp

primary
#5872EF
secondary
#ECE3B7
accent
#BA07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5872EF

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

Preview Lab → · Contrast checker → · Palette generator →

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