#5F58E2#5F58E2

#5F58E2 is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.7% C 0.203 H 279.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5F58E2
RGBrgb(95, 88, 226)
HSLhsl(243, 70%, 62%)
HSVhsv(243, 61%, 89%)
CMYKcmyk(58%, 61.1%, 0%, 11.4%)
CIE-LABlab(45.50, 41.60, -69.54)
CIE-LCHlch(45.50, 81.03, 300.89°)
OKLaboklab(54.73% 0.0338 -0.1999)
OKLCHoklch(54.73% 0.203 279.6)
XYZxyz(21.9322, 14.9018, 73.6574)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58E2 #DBE258
analogous
#5896E2 #5F58E2 #A458E2
triadic
#5F58E2 #E25F58 #58E25F
tetradic
#5F58E2 #E25896 #DBE258 #58E2A4
square
#5F58E2 #E25896 #DBE258 #58E2A4
split-complementary
#5F58E2 #E2A458 #96E258
monochromatic
#231CA3 #2E25D7 #5F58E2 #918CEB #C3C0F4

Accessibility & contrast

On white

5.28
#5F58E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5F58E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58E2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58E2#FFFFFF#000000##FFFFFF
##5F58E21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E6
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#017A95
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f58e2;
/* rgb */ color: rgb(95, 88, 226);
/* oklch */ color: oklch(54.7% 0.203 279.6);
Tailwind
colors: {
  custom: {
    50: '#9887ec',
    500: '#5f58e2',
    950: '#000000',
  },
}
SCSS
$custom: #5f58e2;
$custom-light: #9887ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58e2",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 226
  },
  "hsl": {
    "h": 243.043,
    "s": 70.408,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.20272,
    "h": 279.6
  },
  "luminance": 0.14903
}

Semantic roles & 50–950 ramp

primary
#5F58E2
secondary
#E2E5B1
accent
#D213C9
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F58E2

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

Preview Lab → · Contrast checker → · Palette generator →

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