#5958CB#5958CB

#5958CB is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.5% C 0.174 H 279.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5958CB
RGBrgb(89, 88, 203)
HSLhsl(241, 53%, 57%)
HSVhsv(241, 57%, 80%)
CMYKcmyk(56.2%, 56.7%, 0%, 20.4%)
CIE-LABlab(43.38, 33.22, -59.85)
CIE-LCHlch(43.38, 68.45, 299.03°)
OKLaboklab(52.53% 0.0271 -0.1716)
OKLCHoklch(52.53% 0.174 279)
XYZxyz(18.3856, 13.4139, 58.1086)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958CB #CACB58
analogous
#5890CB #5958CB #9358CB
triadic
#5958CB #CB5958 #58CB59
tetradic
#5958CB #CB5890 #CACB58 #58CB93
square
#5958CB #CB5890 #CACB58 #58CB93
split-complementary
#5958CB #CB9358 #90CB58
monochromatic
#292881 #3837AF #5958CB #8787DA #B6B5E8

Accessibility & contrast

On white

5.70
#5958CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5958CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958CB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958CB#FFFFFF#000000##FFFFFF
##5958CB1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#1B7389
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5958cb;
/* rgb */ color: rgb(89, 88, 203);
/* oklch */ color: oklch(52.5% 0.174 279.0);
Tailwind
colors: {
  custom: {
    50: '#9187dc',
    500: '#5958cb',
    950: '#000000',
  },
}
SCSS
$custom: #5958cb;
$custom-light: #9187dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5958cb",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 240.522,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52527,
    "c": 0.1737,
    "h": 279
  },
  "luminance": 0.13415
}

Semantic roles & 50–950 ramp

primary
#5958CB
secondary
#D6D7A8
accent
#DC4CDB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5958CB

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

Preview Lab → · Contrast checker → · Palette generator →

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