#5958E6#5958E6

#5958E6 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.6% C 0.209 H 277.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5958E6
RGBrgb(89, 88, 230)
HSLhsl(240, 74%, 62%)
HSVhsv(240, 62%, 90%)
CMYKcmyk(61.3%, 61.7%, 0%, 9.8%)
CIE-LABlab(45.38, 41.91, -72.01)
CIE-LCHlch(45.38, 83.32, 300.20°)
OKLaboklab(54.63% 0.0264 -0.2073)
OKLCHoklch(54.63% 0.209 277.3)
XYZxyz(21.8879, 14.8147, 76.5537)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958E6 #E5E658
analogous
#589EE6 #5958E6 #A058E6
triadic
#5958E6 #E65958 #58E659
tetradic
#5958E6 #E6589E #E5E658 #58E6A0
square
#5958E6 #E6589E #E5E658 #58E6A0
split-complementary
#5958E6 #E6A058 #9EE658
monochromatic
#1A19AA #2423DE #5958E6 #8E8DEE #C3C2F6

Accessibility & contrast

On white

5.30
#5958E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5958E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958E6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958E6#FFFFFF#000000##FFFFFF
##5958E61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#0065E3
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5958e6;
/* rgb */ color: rgb(89, 88, 230);
/* oklch */ color: oklch(54.6% 0.209 277.3);
Tailwind
colors: {
  custom: {
    50: '#9687ef',
    500: '#5958e6',
    950: '#000000',
  },
}
SCSS
$custom: #5958e6;
$custom-light: #9687ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5958e6",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 240.423,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5463,
    "c": 0.20901,
    "h": 277.3
  },
  "luminance": 0.14816
}

Semantic roles & 50–950 ramp

primary
#5958E6
secondary
#E6E7B3
accent
#D60FD5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5958E6

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

Preview Lab → · Contrast checker → · Palette generator →

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