#5F58E6#5F58E6

#5F58E6 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.0% C 0.208 H 279.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F58E6
RGBrgb(95, 88, 230)
HSLhsl(243, 74%, 62%)
HSVhsv(243, 62%, 90%)
CMYKcmyk(58.7%, 61.7%, 0%, 9.8%)
CIE-LABlab(45.80, 42.85, -71.31)
CIE-LCHlch(45.80, 83.19, 301.00°)
OKLaboklab(55.05% 0.0335 -0.2051)
OKLCHoklch(55.05% 0.208 279.3)
XYZxyz(22.4874, 15.1239, 76.5818)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58E6 #DFE658
analogous
#5898E6 #5F58E6 #A658E6
triadic
#5F58E6 #E65F58 #58E65F
tetradic
#5F58E6 #E65898 #DFE658 #58E6A6
square
#5F58E6 #E65898 #DFE658 #58E6A6
split-complementary
#5F58E6 #E6A658 #98E658
monochromatic
#2119AA #2C23DE #5F58E6 #928DEE #C5C2F6

Accessibility & contrast

On white

5.22
#5F58E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5F58E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58E6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58E6#FFFFFF#000000##FFFFFF
##5F58E61.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f58e6;
/* rgb */ color: rgb(95, 88, 230);
/* oklch */ color: oklch(55.0% 0.208 279.3);
Tailwind
colors: {
  custom: {
    50: '#9988ef',
    500: '#5f58e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f58e6;
$custom-light: #9988ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58e6",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 242.958,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55049,
    "c": 0.20781,
    "h": 279.3
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#5F58E6
secondary
#E4E7B3
accent
#D60FCC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F58E6

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

Preview Lab → · Contrast checker → · Palette generator →

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