#5F58D2#5F58D2

#5F58D2 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.5% C 0.182 H 280.9°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5F58D2
RGBrgb(95, 88, 210)
HSLhsl(243, 58%, 58%)
HSVhsv(243, 58%, 82%)
CMYKcmyk(54.8%, 58.1%, 0%, 17.6%)
CIE-LABlab(44.32, 36.57, -62.32)
CIE-LCHlch(44.32, 72.26, 300.40°)
OKLaboklab(53.5% 0.0343 -0.1787)
OKLCHoklch(53.5% 0.182 280.9)
XYZxyz(19.8383, 14.0642, 62.6296)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F58D2 #CBD258
analogous
#588ED2 #5F58D2 #9C58D2
triadic
#5F58D2 #D25F58 #58D25F
tetradic
#5F58D2 #D2588E #CBD258 #58D29C
square
#5F58D2 #D2588E #CBD258 #58D29C
split-complementary
#5F58D2 #D29C58 #8ED258
monochromatic
#2B258A #3A32BB #5F58D2 #8D88DF #BBB8EC

Accessibility & contrast

On white

5.51
#5F58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5F58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F58D2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F58D2#FFFFFF#000000##FFFFFF
##5F58D21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#28758C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f58d2;
/* rgb */ color: rgb(95, 88, 210);
/* oklch */ color: oklch(53.5% 0.182 280.9);
Tailwind
colors: {
  custom: {
    50: '#9687e1',
    500: '#5f58d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f58d2;
$custom-light: #9687e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f58d2",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 243.443,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.53498,
    "c": 0.18195,
    "h": 280.9
  },
  "luminance": 0.14065
}

Semantic roles & 50–950 ramp

primary
#5F58D2
secondary
#D8DBAB
accent
#E147D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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