#5872E9#5872E9

#5872E9 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.181 H 270.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5872E9
RGBrgb(88, 114, 233)
HSLhsl(229, 77%, 63%)
HSVhsv(229, 62%, 91%)
CMYKcmyk(62.2%, 51.1%, 0%, 8.6%)
CIE-LABlab(51.83, 26.91, -63.25)
CIE-LCHlch(51.83, 68.74, 293.05°)
OKLaboklab(59.48% 0.0022 -0.1813)
OKLCHoklch(59.48% 0.181 270.7)
XYZxyz(24.7449, 19.9904, 79.6295)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E9 #E9CF58
analogous
#58BBE9 #5872E9 #8658E9
triadic
#5872E9 #E95872 #72E958
tetradic
#5872E9 #E958BB #E9CF58 #58E986
square
#5872E9 #E958BB #E9CF58 #58E986
split-complementary
#5872E9 #E98658 #BBE958
monochromatic
#1732AF #2244E2 #5872E9 #8EA0F0 #C4CDF7

Accessibility & contrast

On white

4.20
#5872E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5872E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E9
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E9#FFFFFF#000000##000000
##5872E91.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C82ED
Deuteranopia (green-blind)
#0075E7
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5872e9;
/* rgb */ color: rgb(88, 114, 233);
/* oklch */ color: oklch(59.5% 0.181 270.7);
Tailwind
colors: {
  custom: {
    50: '#949af1',
    500: '#5872e9',
    950: '#000000',
  },
}
SCSS
$custom: #5872e9;
$custom-light: #949af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e9",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 233
  },
  "hsl": {
    "h": 229.241,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59482,
    "c": 0.18135,
    "h": 270.7
  },
  "luminance": 0.19993
}

Semantic roles & 50–950 ramp

primary
#5872E9
secondary
#E8DFB4
accent
#B40DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5872E9

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

Preview Lab → · Contrast checker → · Palette generator →

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