#5872EA#5872EA

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

Color values

HEX#5872EA
RGBrgb(88, 114, 234)
HSLhsl(229, 78%, 63%)
HSVhsv(229, 62%, 92%)
CMYKcmyk(62.4%, 51.3%, 0%, 8.2%)
CIE-LABlab(51.89, 27.25, -63.71)
CIE-LCHlch(51.89, 69.29, 293.16°)
OKLaboklab(59.55% 0.0023 -0.1827)
OKLCHoklch(59.55% 0.183 270.7)
XYZxyz(24.8881, 20.0477, 80.3840)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872EA #EAD058
analogous
#58BBEA #5872EA #8758EA
triadic
#5872EA #EA5872 #72EA58
tetradic
#5872EA #EA58BB #EAD058 #58EA87
square
#5872EA #EA58BB #EAD058 #58EA87
split-complementary
#5872EA #EA8758 #BBEA58
monochromatic
#1632B1 #2244E3 #5872EA #8EA0F1 #C5CEF8

Accessibility & contrast

On white

4.19
#5872EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5872EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872EA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872EA#FFFFFF#000000##000000
##5872EA1.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)
#2A83EE
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5872ea;
/* rgb */ color: rgb(88, 114, 234);
/* oklch */ color: oklch(59.6% 0.183 270.7);
Tailwind
colors: {
  custom: {
    50: '#949af1',
    500: '#5872ea',
    950: '#000000',
  },
}
SCSS
$custom: #5872ea;
$custom-light: #949af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5872ea",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 229.315,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59552,
    "c": 0.18269,
    "h": 270.7
  },
  "luminance": 0.2005
}

Semantic roles & 50–950 ramp

primary
#5872EA
secondary
#E9E0B5
accent
#B50CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5872EA

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

Preview Lab → · Contrast checker → · Palette generator →

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