#5A58DB#5A58DB

#5A58DB is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.8% C 0.195 H 278.3°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A58DB
RGBrgb(90, 88, 219)
HSLhsl(241, 65%, 60%)
HSVhsv(241, 60%, 86%)
CMYKcmyk(58.9%, 59.8%, 0%, 14.1%)
CIE-LABlab(44.61, 38.54, -67.02)
CIE-LCHlch(44.61, 77.31, 299.90°)
OKLaboklab(53.82% 0.0281 -0.1926)
OKLCHoklch(53.82% 0.195 278.3)
XYZxyz(20.4883, 14.2661, 68.6781)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A58DB #D9DB58
analogous
#5897DB #5A58DB #9B58DB
triadic
#5A58DB #DB5A58 #58DB5A
tetradic
#5A58DB #DB5897 #D9DB58 #58DB9B
square
#5A58DB #DB5897 #D9DB58 #58DB9B
split-complementary
#5A58DB #DB9B58 #97DB58
monochromatic
#232198 #2E2CCA #5A58DB #8C8AE6 #BDBDF1

Accessibility & contrast

On white

5.45
#5A58DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A58DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A58DB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A58DB#FFFFFF#000000##FFFFFF
##5A58DB1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a58db;
/* rgb */ color: rgb(90, 88, 219);
/* oklch */ color: oklch(53.8% 0.195 278.3);
Tailwind
colors: {
  custom: {
    50: '#9587e7',
    500: '#5a58db',
    950: '#000000',
  },
}
SCSS
$custom: #5a58db;
$custom-light: #9587e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a58db",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 240.916,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53822,
    "c": 0.19466,
    "h": 278.3
  },
  "luminance": 0.14268
}

Semantic roles & 50–950 ramp

primary
#5A58DB
secondary
#E0E1AE
accent
#CC19CA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A58DB

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

Preview Lab → · Contrast checker → · Palette generator →

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