#5874E4#5874E4

#5874E4 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.5% C 0.172 H 269.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5874E4
RGBrgb(88, 116, 228)
HSLhsl(228, 72%, 62%)
HSVhsv(228, 61%, 89%)
CMYKcmyk(61.4%, 49.1%, 0%, 10.6%)
CIE-LABlab(52.02, 24.00, -60.13)
CIE-LCHlch(52.02, 64.74, 291.76°)
OKLaboklab(59.53% -0.0002 -0.1721)
OKLCHoklch(59.53% 0.172 269.9)
XYZxyz(24.2688, 20.1649, 75.9970)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5874E4 #E4C858
analogous
#58BAE4 #5874E4 #8258E4
triadic
#5874E4 #E45874 #74E458
tetradic
#5874E4 #E458BA #E4C858 #58E482
square
#5874E4 #E458BA #E4C858 #58E482
split-complementary
#5874E4 #E48258 #BAE458
monochromatic
#1B37A7 #2348DB #5874E4 #8DA0ED #C1CCF5

Accessibility & contrast

On white

4.17
#5874E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5874E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5874E4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5874E4#FFFFFF#000000##000000
##5874E41.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3883E8
Deuteranopia (green-blind)
#1876E2
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5874e4;
/* rgb */ color: rgb(88, 116, 228);
/* oklch */ color: oklch(59.5% 0.172 269.9);
Tailwind
colors: {
  custom: {
    50: '#939bed',
    500: '#5874e4',
    950: '#000000',
  },
}
SCSS
$custom: #5874e4;
$custom-light: #939bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5874e4",
  "rgb": {
    "r": 88,
    "g": 116,
    "b": 228
  },
  "hsl": {
    "h": 228,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59529,
    "c": 0.17213,
    "h": 269.9
  },
  "luminance": 0.20167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5874E4

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

Preview Lab → · Contrast checker → · Palette generator →

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