#5F58EC#5F58EC

#5F58EC is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.5% C 0.215 H 278.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5F58EC
RGBrgb(95, 88, 236)
HSLhsl(243, 80%, 64%)
HSVhsv(243, 63%, 93%)
CMYKcmyk(59.7%, 62.7%, 0%, 7.5%)
CIE-LABlab(46.27, 44.73, -73.93)
CIE-LCHlch(46.27, 86.41, 301.18°)
OKLaboklab(55.53% 0.0331 -0.2128)
OKLCHoklch(55.53% 0.215 278.8)
XYZxyz(23.3445, 15.4667, 81.0958)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58EC #E5EC58
analogous
#589BEC #5F58EC #A958EC
triadic
#5F58EC #EC5F58 #58EC5F
tetradic
#5F58EC #EC589B #E5EC58 #58ECA9
square
#5F58EC #EC589B #E5EC58 #58ECA9
split-complementary
#5F58EC #ECA958 #9BEC58
monochromatic
#1C15B5 #2A21E6 #5F58EC #948FF2 #C8C6F9

Accessibility & contrast

On white

5.13
#5F58EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5F58EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58EC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58EC#FFFFFF#000000##FFFFFF
##5F58EC1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f58ec;
/* rgb */ color: rgb(95, 88, 236);
/* oklch */ color: oklch(55.5% 0.215 278.8);
Tailwind
colors: {
  custom: {
    50: '#9a88f3',
    500: '#5f58ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f58ec;
$custom-light: #9a88f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58ec",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 242.838,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55532,
    "c": 0.21537,
    "h": 278.8
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

primary
#5F58EC
secondary
#E8EAB6
accent
#DC0AD2
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F58EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5F58EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva