#5875E4#5875E4

#5875E4 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.7% C 0.171 H 269.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5875E4
RGBrgb(88, 117, 228)
HSLhsl(228, 72%, 62%)
HSVhsv(228, 61%, 89%)
CMYKcmyk(61.4%, 48.7%, 0%, 10.6%)
CIE-LABlab(52.28, 23.39, -59.71)
CIE-LCHlch(52.28, 64.13, 291.39°)
OKLaboklab(59.73% -0.0012 -0.1709)
OKLCHoklch(59.73% 0.171 269.6)
XYZxyz(24.3847, 20.3966, 76.0357)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5875E4 #E4C758
analogous
#58BBE4 #5875E4 #8158E4
triadic
#5875E4 #E45875 #75E458
tetradic
#5875E4 #E458BB #E4C758 #58E481
square
#5875E4 #E458BB #E4C758 #58E481
split-complementary
#5875E4 #E48158 #BBE458
monochromatic
#1B38A7 #234ADB #5875E4 #8DA1ED #C1CCF5

Accessibility & contrast

On white

4.13
#5875E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5875E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5875E4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5875E4#FFFFFF#000000##000000
##5875E41.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B83E8
Deuteranopia (green-blind)
#1D77E2
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5875e4;
/* rgb */ color: rgb(88, 117, 228);
/* oklch */ color: oklch(59.7% 0.171 269.6);
Tailwind
colors: {
  custom: {
    50: '#939ced',
    500: '#5875e4',
    950: '#000000',
  },
}
SCSS
$custom: #5875e4;
$custom-light: #939ced;
$custom-dark: #000000;
JSON
{
  "hex": "#5875e4",
  "rgb": {
    "r": 88,
    "g": 117,
    "b": 228
  },
  "hsl": {
    "h": 227.571,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59727,
    "c": 0.17089,
    "h": 269.6
  },
  "luminance": 0.20399
}

Semantic roles & 50–950 ramp

primary
#5875E4
secondary
#E6DBB2
accent
#AC11D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5875E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5875E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva