#5A58D2#5A58D2

#5A58D2 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.1% C 0.183 H 278.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A58D2
RGBrgb(90, 88, 210)
HSLhsl(241, 58%, 58%)
HSVhsv(241, 58%, 82%)
CMYKcmyk(57.1%, 58.1%, 0%, 17.6%)
CIE-LABlab(43.95, 35.65, -62.94)
CIE-LCHlch(43.95, 72.34, 299.53°)
OKLaboklab(53.13% 0.0283 -0.1806)
OKLCHoklch(53.13% 0.183 278.9)
XYZxyz(19.3353, 13.8049, 62.6060)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A58D2 #D0D258
analogous
#5893D2 #5A58D2 #9758D2
triadic
#5A58D2 #D25A58 #58D25A
tetradic
#5A58D2 #D25893 #D0D258 #58D297
square
#5A58D2 #D25893 #D0D258 #58D297
split-complementary
#5A58D2 #D29758 #93D258
monochromatic
#27258A #3432BB #5A58D2 #8A88DF #B9B8EC

Accessibility & contrast

On white

5.58
#5A58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A58D2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A58D2#FFFFFF#000000##FFFFFF
##5A58D21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#11758C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a58d2;
/* rgb */ color: rgb(90, 88, 210);
/* oklch */ color: oklch(53.1% 0.183 278.9);
Tailwind
colors: {
  custom: {
    50: '#9387e1',
    500: '#5a58d2',
    950: '#000000',
  },
}
SCSS
$custom: #5a58d2;
$custom-light: #9387e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a58d2",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 240.984,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.53127,
    "c": 0.18285,
    "h": 278.9
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#5A58D2
secondary
#DADBAB
accent
#E147DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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