#5958EB#5958EB

#5958EB is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.0% C 0.215 H 277.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5958EB
RGBrgb(89, 88, 235)
HSLhsl(240, 79%, 63%)
HSVhsv(240, 63%, 92%)
CMYKcmyk(62.1%, 62.6%, 0%, 7.8%)
CIE-LABlab(45.77, 43.51, -74.20)
CIE-LCHlch(45.77, 86.02, 300.39°)
OKLaboklab(55.04% 0.0261 -0.2137)
OKLCHoklch(55.04% 0.215 277)
XYZxyz(22.6001, 15.0996, 80.3047)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958EB #EAEB58
analogous
#58A0EB #5958EB #A258EB
triadic
#5958EB #EB5958 #58EB59
tetradic
#5958EB #EB58A0 #EAEB58 #58EBA2
square
#5958EB #EB58A0 #EAEB58 #58EBA2
split-complementary
#5958EB #EBA258 #A0EB58
monochromatic
#1715B3 #2321E4 #5958EB #8F8FF2 #C6C5F8

Accessibility & contrast

On white

5.22
#5958EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5958EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958EB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958EB#FFFFFF#000000##FFFFFF
##5958EB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#0066E8
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5958eb;
/* rgb */ color: rgb(89, 88, 235);
/* oklch */ color: oklch(55.0% 0.215 277.0);
Tailwind
colors: {
  custom: {
    50: '#9787f2',
    500: '#5958eb',
    950: '#000000',
  },
}
SCSS
$custom: #5958eb;
$custom-light: #9787f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5958eb",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 240.408,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55038,
    "c": 0.21533,
    "h": 277
  },
  "luminance": 0.15101
}

Semantic roles & 50–950 ramp

primary
#5958EB
secondary
#E9EAB5
accent
#DB0BD9
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5958EB

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

Preview Lab → · Contrast checker → · Palette generator →

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