#5A5BD2#5A5BD2

#5A5BD2 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.7% C 0.179 H 278.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5A5BD2
RGBrgb(90, 91, 210)
HSLhsl(240, 57%, 59%)
HSVhsv(240, 57%, 82%)
CMYKcmyk(57.1%, 56.7%, 0%, 17.6%)
CIE-LABlab(44.67, 33.82, -61.78)
CIE-LCHlch(44.67, 70.43, 298.70°)
OKLaboklab(53.66% 0.0253 -0.1772)
OKLCHoklch(53.66% 0.179 278.1)
XYZxyz(19.5867, 14.3076, 62.6898)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BD2 #D2D15A
analogous
#5A97D2 #5A5BD2 #955AD2
triadic
#5A5BD2 #D25A5B #5BD25A
tetradic
#5A5BD2 #D25A97 #D2D15A #5AD295
square
#5A5BD2 #D25A97 #D2D15A #5AD295
split-complementary
#5A5BD2 #D2955A #97D25A
monochromatic
#26278C #3334BC #5A5BD2 #8A8BDF #BABBEC

Accessibility & contrast

On white

5.44
#5A5BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5A5BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BD2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BD2#FFFFFF#000000##FFFFFF
##5A5BD21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#10778E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5bd2;
/* rgb */ color: rgb(90, 91, 210);
/* oklch */ color: oklch(53.7% 0.179 278.1);
Tailwind
colors: {
  custom: {
    50: '#9389e1',
    500: '#5a5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bd2;
$custom-light: #9389e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bd2",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 239.5,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.179,
    "h": 278.1
  },
  "luminance": 0.14309
}

Semantic roles & 50–950 ramp

primary
#5A5BD2
secondary
#DCDBAC
accent
#DF47E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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