#5F58DC#5F58DC

#5F58DC is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.3% C 0.195 H 280.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F58DC
RGBrgb(95, 88, 220)
HSLhsl(243, 65%, 60%)
HSVhsv(243, 60%, 86%)
CMYKcmyk(56.8%, 60%, 0%, 13.7%)
CIE-LABlab(45.05, 39.71, -66.86)
CIE-LCHlch(45.05, 77.76, 300.71°)
OKLaboklab(54.26% 0.034 -0.192)
OKLCHoklch(54.26% 0.195 280.1)
XYZxyz(21.1232, 14.5782, 69.3971)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58DC #D5DC58
analogous
#5893DC #5F58DC #A158DC
triadic
#5F58DC #DC5F58 #58DC5F
tetradic
#5F58DC #DC5893 #D5DC58 #58DCA1
square
#5F58DC #DC5893 #D5DC58 #58DCA1
split-complementary
#5F58DC #DCA158 #93DC58
monochromatic
#272099 #332BCC #5F58DC #8F8BE7 #C0BDF1

Accessibility & contrast

On white

5.36
#5F58DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5F58DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58DC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58DC#FFFFFF#000000##FFFFFF
##5F58DC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#167892
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f58dc;
/* rgb */ color: rgb(95, 88, 220);
/* oklch */ color: oklch(54.3% 0.195 280.1);
Tailwind
colors: {
  custom: {
    50: '#9787e8',
    500: '#5f58dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f58dc;
$custom-light: #9787e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58dc",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 243.182,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.19501,
    "h": 280.1
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

primary
#5F58DC
secondary
#DEE1AF
accent
#CD18C4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F58DC

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

Preview Lab → · Contrast checker → · Palette generator →

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