#5958EF#5958EF

#5958EF is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.220 H 276.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5958EF
RGBrgb(89, 88, 239)
HSLhsl(240, 83%, 64%)
HSVhsv(240, 63%, 94%)
CMYKcmyk(62.8%, 63.2%, 0%, 6.3%)
CIE-LABlab(46.09, 44.79, -75.93)
CIE-LCHlch(46.09, 88.16, 300.54°)
OKLaboklab(55.37% 0.0258 -0.2188)
OKLCHoklch(55.37% 0.22 276.7)
XYZxyz(23.1845, 15.3334, 83.3825)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958EF #EEEF58
analogous
#58A3EF #5958EF #A558EF
triadic
#5958EF #EF5958 #58EF59
tetradic
#5958EF #EF58A3 #EEEF58 #58EFA5
square
#5958EF #EF58A3 #EEEF58 #58EFA5
split-complementary
#5958EF #EFA558 #A3EF58
monochromatic
#1312BB #2120EA #5958EF #9190F4 #C8C8FA

Accessibility & contrast

On white

5.16
#5958EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5958EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958EF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958EF#FFFFFF#000000##FFFFFF
##5958EF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#0067EC
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5958ef;
/* rgb */ color: rgb(89, 88, 239);
/* oklch */ color: oklch(55.4% 0.220 276.7);
Tailwind
colors: {
  custom: {
    50: '#9788f5',
    500: '#5958ef',
    950: '#000000',
  },
}
SCSS
$custom: #5958ef;
$custom-light: #9788f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5958ef",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 240.397,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.22035,
    "h": 276.7
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

primary
#5958EF
secondary
#EBECB7
accent
#DF07DD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5958EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5958EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva