#5958DF#5958DF

#5958DF is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.1% C 0.200 H 277.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5958DF
RGBrgb(89, 88, 223)
HSLhsl(240, 68%, 61%)
HSVhsv(240, 61%, 87%)
CMYKcmyk(60.1%, 60.5%, 0%, 12.5%)
CIE-LABlab(44.84, 39.66, -68.92)
CIE-LCHlch(44.84, 79.52, 299.92°)
OKLaboklab(54.07% 0.0267 -0.1982)
OKLCHoklch(54.07% 0.2 277.7)
XYZxyz(20.9245, 14.4294, 71.4802)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958DF #DEDF58
analogous
#589ADF #5958DF #9C58DF
triadic
#5958DF #DF5958 #58DF59
tetradic
#5958DF #DF589A #DEDF58 #58DF9C
square
#5958DF #DF589A #DEDF58 #58DF9C
split-complementary
#5958DF #DF9C58 #9ADF58
monochromatic
#1F1E9E #2928D2 #5958DF #8C8BE9 #BFBFF3

Accessibility & contrast

On white

5.40
#5958DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5958DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958DF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958DF#FFFFFF#000000##FFFFFF
##5958DF1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0064DC
Tritanopia (blue-blind)
#007993
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5958df;
/* rgb */ color: rgb(89, 88, 223);
/* oklch */ color: oklch(54.1% 0.200 277.7);
Tailwind
colors: {
  custom: {
    50: '#9587ea',
    500: '#5958df',
    950: '#000000',
  },
}
SCSS
$custom: #5958df;
$custom-light: #9587ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5958df",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 240.444,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54068,
    "c": 0.20005,
    "h": 277.7
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#5958DF
secondary
#E2E3B0
accent
#D016CE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5958DF

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

Preview Lab → · Contrast checker → · Palette generator →

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