#5872EB#5872EB

#5872EB is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.6% C 0.184 H 270.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5872EB
RGBrgb(88, 114, 235)
HSLhsl(229, 79%, 63%)
HSVhsv(229, 63%, 92%)
CMYKcmyk(62.6%, 51.5%, 0%, 7.8%)
CIE-LABlab(51.96, 27.58, -64.16)
CIE-LCHlch(51.96, 69.84, 293.26°)
OKLaboklab(59.62% 0.0024 -0.184)
OKLCHoklch(59.62% 0.184 270.7)
XYZxyz(25.0322, 20.1053, 81.1427)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872EB #EBD158
analogous
#58BBEB #5872EB #8758EB
triadic
#5872EB #EB5872 #72EB58
tetradic
#5872EB #EB58BB #EBD158 #58EB87
square
#5872EB #EB58BB #EBD158 #58EB87
split-complementary
#5872EB #EB8758 #BBEB58
monochromatic
#1531B3 #2144E4 #5872EB #8FA0F2 #C5CEF8

Accessibility & contrast

On white

4.18
#5872EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5872EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872EB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872EB#FFFFFF#000000##000000
##5872EB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983EF
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5872eb;
/* rgb */ color: rgb(88, 114, 235);
/* oklch */ color: oklch(59.6% 0.184 270.7);
Tailwind
colors: {
  custom: {
    50: '#959af2',
    500: '#5872eb',
    950: '#000000',
  },
}
SCSS
$custom: #5872eb;
$custom-light: #959af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5872eb",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 229.388,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59622,
    "c": 0.18404,
    "h": 270.7
  },
  "luminance": 0.20107
}

Semantic roles & 50–950 ramp

primary
#5872EB
secondary
#EAE0B5
accent
#B60BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5872EB

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

Preview Lab → · Contrast checker → · Palette generator →

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