#5A58CB#5A58CB

#5A58CB is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.6% C 0.173 H 279.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5A58CB
RGBrgb(90, 88, 203)
HSLhsl(241, 53%, 57%)
HSVhsv(241, 57%, 80%)
CMYKcmyk(55.7%, 56.7%, 0%, 20.4%)
CIE-LABlab(43.45, 33.41, -59.72)
CIE-LCHlch(43.45, 68.43, 299.22°)
OKLaboklab(52.6% 0.0283 -0.1712)
OKLCHoklch(52.6% 0.174 279.4)
XYZxyz(18.4823, 13.4637, 58.1132)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A58CB #C9CB58
analogous
#5890CB #5A58CB #9358CB
triadic
#5A58CB #CB5A58 #58CB5A
tetradic
#5A58CB #CB5890 #C9CB58 #58CB93
square
#5A58CB #CB5890 #C9CB58 #58CB93
split-complementary
#5A58CB #CB9358 #90CB58
monochromatic
#2A2881 #3937AF #5A58CB #8887DA #B6B5E8

Accessibility & contrast

On white

5.69
#5A58CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5A58CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A58CB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A58CB#FFFFFF#000000##FFFFFF
##5A58CB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#207389
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a58cb;
/* rgb */ color: rgb(90, 88, 203);
/* oklch */ color: oklch(52.6% 0.173 279.4);
Tailwind
colors: {
  custom: {
    50: '#9287dc',
    500: '#5a58cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a58cb;
$custom-light: #9287dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a58cb",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 241.043,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52601,
    "c": 0.1735,
    "h": 279.4
  },
  "luminance": 0.13465
}

Semantic roles & 50–950 ramp

primary
#5A58CB
secondary
#D6D7A8
accent
#DC4CD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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