#5958F9#5958F9

#5958F9 is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 56.2% C 0.233 H 276.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5958F9
RGBrgb(89, 88, 249)
HSLhsl(240, 93%, 66%)
HSVhsv(240, 65%, 98%)
CMYKcmyk(64.3%, 64.7%, 0%, 2.4%)
CIE-LABlab(46.90, 47.98, -80.21)
CIE-LCHlch(46.90, 93.46, 300.89°)
OKLaboklab(56.21% 0.0249 -0.2314)
OKLCHoklch(56.21% 0.233 276.1)
XYZxyz(24.7028, 15.9407, 91.3792)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958F9 #F8F958
analogous
#58A7F9 #5958F9 #A958F9
triadic
#5958F9 #F95958 #58F959
tetradic
#5958F9 #F958A7 #F8F958 #58F9A9
square
#5958F9 #F958A7 #F8F958 #58F9A9
split-complementary
#5958F9 #F9A958 #A7F958
monochromatic
#0907CF #1E1DF7 #5958F9 #9493FB #CECEFD

Accessibility & contrast

On white

5.01
#5958F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5958F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958F9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958F9#FFFFFF#000000##FFFFFF
##5958F91.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FE
Deuteranopia (green-blind)
#0068F6
Tritanopia (blue-blind)
#0082A1
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5958f9;
/* rgb */ color: rgb(89, 88, 249);
/* oklch */ color: oklch(56.2% 0.233 276.1);
Tailwind
colors: {
  custom: {
    50: '#9988fc',
    500: '#5958f9',
    950: '#000000',
  },
}
SCSS
$custom: #5958f9;
$custom-light: #9988fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5958f9",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 249
  },
  "hsl": {
    "h": 240.373,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.56207,
    "c": 0.23272,
    "h": 276.1
  },
  "luminance": 0.15943
}

Semantic roles & 50–950 ramp

primary
#5958F9
secondary
#F1F1BC
accent
#E600E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5958F9

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

Preview Lab → · Contrast checker → · Palette generator →

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