#5A58DF#5A58DF

#5A58DF is a mid, vivid blue. Relative luminance 0.145; OKLCH L 54.1% C 0.200 H 278.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A58DF
RGBrgb(90, 88, 223)
HSLhsl(241, 68%, 61%)
HSVhsv(241, 61%, 87%)
CMYKcmyk(59.6%, 60.5%, 0%, 12.5%)
CIE-LABlab(44.91, 39.82, -68.80)
CIE-LCHlch(44.91, 79.50, 300.06°)
OKLaboklab(54.14% 0.0279 -0.1979)
OKLCHoklch(54.14% 0.2 278)
XYZxyz(21.0212, 14.4793, 71.4848)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A58DF #DDDF58
analogous
#5899DF #5A58DF #9D58DF
triadic
#5A58DF #DF5A58 #58DF5A
tetradic
#5A58DF #DF5899 #DDDF58 #58DF9D
square
#5A58DF #DF5899 #DDDF58 #58DF9D
split-complementary
#5A58DF #DF9D58 #99DF58
monochromatic
#201E9E #2B28D2 #5A58DF #8D8BE9 #BFBFF3

Accessibility & contrast

On white

5.39
#5A58DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A58DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A58DF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A58DF#FFFFFF#000000##FFFFFF
##5A58DF1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0065DC
Tritanopia (blue-blind)
#007993
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a58df;
/* rgb */ color: rgb(90, 88, 223);
/* oklch */ color: oklch(54.1% 0.200 278.0);
Tailwind
colors: {
  custom: {
    50: '#9587ea',
    500: '#5a58df',
    950: '#000000',
  },
}
SCSS
$custom: #5a58df;
$custom-light: #9587ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a58df",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 240.889,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54138,
    "c": 0.19984,
    "h": 278
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#5A58DF
secondary
#E2E3B0
accent
#D016CD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A58DF

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

Preview Lab → · Contrast checker → · Palette generator →

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