#5958EA#5958EA

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

Color values

HEX#5958EA
RGBrgb(89, 88, 234)
HSLhsl(240, 78%, 63%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(62%, 62.4%, 0%, 8.2%)
CIE-LABlab(45.69, 43.19, -73.76)
CIE-LCHlch(45.69, 85.48, 300.35°)
OKLaboklab(54.96% 0.0261 -0.2125)
OKLCHoklch(54.96% 0.214 277)
XYZxyz(22.4560, 15.0420, 79.5460)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958EA #E9EA58
analogous
#58A0EA #5958EA #A258EA
triadic
#5958EA #EA5958 #58EA59
tetradic
#5958EA #EA58A0 #E9EA58 #58EAA2
square
#5958EA #EA58A0 #E9EA58 #58EAA2
split-complementary
#5958EA #EAA258 #A0EA58
monochromatic
#1716B1 #2322E3 #5958EA #8F8EF1 #C5C5F8

Accessibility & contrast

On white

5.24
#5958EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5958EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958EA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958EA#FFFFFF#000000##FFFFFF
##5958EA1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#0066E7
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5958ea;
/* rgb */ color: rgb(89, 88, 234);
/* oklch */ color: oklch(55.0% 0.214 277.0);
Tailwind
colors: {
  custom: {
    50: '#9787f2',
    500: '#5958ea',
    950: '#000000',
  },
}
SCSS
$custom: #5958ea;
$custom-light: #9787f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5958ea",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 240.411,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.54956,
    "c": 0.21407,
    "h": 277
  },
  "luminance": 0.15044
}

Semantic roles & 50–950 ramp

primary
#5958EA
secondary
#E9E9B5
accent
#DA0CD8
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5958EA

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

Preview Lab → · Contrast checker → · Palette generator →

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