#5872ED#5872ED

#5872ED is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.187 H 270.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5872ED
RGBrgb(88, 114, 237)
HSLhsl(230, 81%, 64%)
HSVhsv(230, 63%, 93%)
CMYKcmyk(62.9%, 51.9%, 0%, 7.1%)
CIE-LABlab(52.09, 28.25, -65.07)
CIE-LCHlch(52.09, 70.94, 293.47°)
OKLaboklab(59.76% 0.0025 -0.1867)
OKLCHoklch(59.76% 0.187 270.8)
XYZxyz(25.3227, 20.2215, 82.6730)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872ED #EDD358
analogous
#58BCED #5872ED #8858ED
triadic
#5872ED #ED5872 #72ED58
tetradic
#5872ED #ED58BC #EDD358 #58ED88
square
#5872ED #ED58BC #EDD358 #58ED88
split-complementary
#5872ED #ED8858 #BCED58
monochromatic
#1430B7 #2143E7 #5872ED #8FA1F3 #C6CFF9

Accessibility & contrast

On white

4.16
#5872ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5872ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872ED
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872ED#FFFFFF#000000##000000
##5872ED1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2583F1
Deuteranopia (green-blind)
#0076EA
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5872ed;
/* rgb */ color: rgb(88, 114, 237);
/* oklch */ color: oklch(59.8% 0.187 270.8);
Tailwind
colors: {
  custom: {
    50: '#959af4',
    500: '#5872ed',
    950: '#000000',
  },
}
SCSS
$custom: #5872ed;
$custom-light: #959af4;
$custom-dark: #000000;
JSON
{
  "hex": "#5872ed",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 237
  },
  "hsl": {
    "h": 229.53,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59762,
    "c": 0.18671,
    "h": 270.8
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#5872ED
secondary
#EBE2B6
accent
#B809DD
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5872ED

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

Preview Lab → · Contrast checker → · Palette generator →

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