#5872F1#5872F1

#5872F1 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.0% C 0.192 H 270.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5872F1
RGBrgb(88, 114, 241)
HSLhsl(230, 85%, 65%)
HSVhsv(230, 63%, 95%)
CMYKcmyk(63.5%, 52.7%, 0%, 5.5%)
CIE-LABlab(52.35, 29.60, -66.87)
CIE-LCHlch(52.35, 73.13, 293.87°)
OKLaboklab(60.05% 0.0028 -0.192)
OKLCHoklch(60.05% 0.192 270.8)
XYZxyz(25.9137, 20.4579, 85.7852)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872F1 #F1D758
analogous
#58BFF1 #5872F1 #8B58F1
triadic
#5872F1 #F15872 #72F158
tetradic
#5872F1 #F158BF #F1D758 #58F18B
square
#5872F1 #F158BF #F1D758 #58F18B
split-complementary
#5872F1 #F18B58 #BFF158
monochromatic
#102EBF #2042EC #5872F1 #90A2F6 #C9D1FA

Accessibility & contrast

On white

4.12
#5872F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5872F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872F1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872F1#FFFFFF#000000##000000
##5872F11.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C84F5
Deuteranopia (green-blind)
#0076EE
Tritanopia (blue-blind)
#0090A7
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5872f1;
/* rgb */ color: rgb(88, 114, 241);
/* oklch */ color: oklch(60.0% 0.192 270.8);
Tailwind
colors: {
  custom: {
    50: '#969af6',
    500: '#5872f1',
    950: '#000000',
  },
}
SCSS
$custom: #5872f1;
$custom-light: #969af6;
$custom-dark: #000000;
JSON
{
  "hex": "#5872f1",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 241
  },
  "hsl": {
    "h": 229.804,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60045,
    "c": 0.19202,
    "h": 270.8
  },
  "luminance": 0.2046
}

Semantic roles & 50–950 ramp

primary
#5872F1
secondary
#EDE4B8
accent
#BC05E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5872F1

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

Preview Lab → · Contrast checker → · Palette generator →

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