#5874E5#5874E5

#5874E5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.6% C 0.173 H 270.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5874E5
RGBrgb(88, 116, 229)
HSLhsl(228, 73%, 62%)
HSVhsv(228, 62%, 90%)
CMYKcmyk(61.6%, 49.3%, 0%, 10.2%)
CIE-LABlab(52.09, 24.34, -60.59)
CIE-LCHlch(52.09, 65.29, 291.88°)
OKLaboklab(59.6% -0.0001 -0.1735)
OKLCHoklch(59.6% 0.173 270)
XYZxyz(24.4080, 20.2205, 76.7302)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5874E5 #E5C958
analogous
#58BBE5 #5874E5 #8358E5
triadic
#5874E5 #E55874 #74E558
tetradic
#5874E5 #E558BB #E5C958 #58E583
square
#5874E5 #E558BB #E5C958 #58E583
split-complementary
#5874E5 #E58358 #BBE558
monochromatic
#1A36A8 #2348DD #5874E5 #8DA0ED #C2CCF5

Accessibility & contrast

On white

4.16
#5874E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5874E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5874E5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5874E5#FFFFFF#000000##000000
##5874E51.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)
#3783E9
Deuteranopia (green-blind)
#1576E3
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5874e5;
/* rgb */ color: rgb(88, 116, 229);
/* oklch */ color: oklch(59.6% 0.173 270.0);
Tailwind
colors: {
  custom: {
    50: '#949bee',
    500: '#5874e5',
    950: '#000000',
  },
}
SCSS
$custom: #5874e5;
$custom-light: #949bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5874e5",
  "rgb": {
    "r": 88,
    "g": 116,
    "b": 229
  },
  "hsl": {
    "h": 228.085,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59597,
    "c": 0.17349,
    "h": 270
  },
  "luminance": 0.20223
}

Semantic roles & 50–950 ramp

primary
#5874E5
secondary
#E6DCB3
accent
#AE10D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5874E5

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

Preview Lab → · Contrast checker → · Palette generator →

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