#5958E9#5958E9

#5958E9 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.9% C 0.213 H 277.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5958E9
RGBrgb(89, 88, 233)
HSLhsl(240, 77%, 63%)
HSVhsv(240, 62%, 91%)
CMYKcmyk(61.8%, 62.2%, 0%, 8.6%)
CIE-LABlab(45.61, 42.87, -73.33)
CIE-LCHlch(45.61, 84.94, 300.31°)
OKLaboklab(54.87% 0.0262 -0.2112)
OKLCHoklch(54.87% 0.213 277.1)
XYZxyz(22.3128, 14.9847, 78.7915)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958E9 #E8E958
analogous
#589FE9 #5958E9 #A258E9
triadic
#5958E9 #E95958 #58E959
tetradic
#5958E9 #E9589F #E8E958 #58E9A2
square
#5958E9 #E9589F #E8E958 #58E9A2
split-complementary
#5958E9 #E9A258 #9FE958
monochromatic
#1817AF #2322E2 #5958E9 #8F8EF0 #C5C4F7

Accessibility & contrast

On white

5.25
#5958E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5958E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958E9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958E9#FFFFFF#000000##FFFFFF
##5958E91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#0066E6
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5958e9;
/* rgb */ color: rgb(89, 88, 233);
/* oklch */ color: oklch(54.9% 0.213 277.1);
Tailwind
colors: {
  custom: {
    50: '#9687f1',
    500: '#5958e9',
    950: '#000000',
  },
}
SCSS
$custom: #5958e9;
$custom-light: #9687f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5958e9",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 233
  },
  "hsl": {
    "h": 240.414,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.21281,
    "h": 277.1
  },
  "luminance": 0.14986
}

Semantic roles & 50–950 ramp

primary
#5958E9
secondary
#E8E8B4
accent
#D90DD8
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5958E9

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

Preview Lab → · Contrast checker → · Palette generator →

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