#5862E4#5862E4

#5862E4 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 56.1% C 0.195 H 274.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5862E4
RGBrgb(88, 98, 228)
HSLhsl(236, 72%, 62%)
HSVhsv(236, 61%, 89%)
CMYKcmyk(61.4%, 57%, 0%, 10.6%)
CIE-LABlab(47.51, 35.06, -67.42)
CIE-LCHlch(47.51, 76.00, 297.48°)
OKLaboklab(56.14% 0.0166 -0.1938)
OKLCHoklch(56.14% 0.195 274.9)
XYZxyz(22.3912, 16.4097, 75.3712)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5862E4 #E4DA58
analogous
#58A8E4 #5862E4 #9458E4
triadic
#5862E4 #E45862 #62E458
tetradic
#5862E4 #E458A8 #E4DA58 #58E494
square
#5862E4 #E458A8 #E4DA58 #58E494
split-complementary
#5862E4 #E49458 #A8E458
monochromatic
#1B25A7 #2331DB #5862E4 #8D94ED #C1C5F5

Accessibility & contrast

On white

4.90
#5862E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5862E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5862E4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5862E4#FFFFFF#000000##FFFFFF
##5862E41.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#006BE1
Tritanopia (blue-blind)
#008199
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5862e4;
/* rgb */ color: rgb(88, 98, 228);
/* oklch */ color: oklch(56.1% 0.195 274.9);
Tailwind
colors: {
  custom: {
    50: '#948eed',
    500: '#5862e4',
    950: '#000000',
  },
}
SCSS
$custom: #5862e4;
$custom-light: #948eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5862e4",
  "rgb": {
    "r": 88,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 235.714,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.19451,
    "h": 274.9
  },
  "luminance": 0.16412
}

Semantic roles & 50–950 ramp

primary
#5862E4
secondary
#E6E2B2
accent
#C611D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5862E4

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

Preview Lab → · Contrast checker → · Palette generator →

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