#5A5DEB#5A5DEB

#5A5DEB is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 55.9% C 0.209 H 276.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A5DEB
RGBrgb(90, 93, 235)
HSLhsl(239, 78%, 64%)
HSVhsv(239, 62%, 92%)
CMYKcmyk(61.7%, 60.4%, 0%, 7.8%)
CIE-LABlab(46.97, 40.69, -72.24)
CIE-LCHlch(46.97, 82.91, 299.39°)
OKLaboklab(55.94% 0.0231 -0.2079)
OKLCHoklch(55.94% 0.209 276.3)
XYZxyz(23.1213, 15.9987, 80.4508)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DEB #EBE85A
analogous
#5AA5EB #5A5DEB #9F5AEB
triadic
#5A5DEB #EB5A5D #5DEB5A
tetradic
#5A5DEB #EB5AA5 #EBE85A #5AEB9F
square
#5A5DEB #EB5AA5 #EBE85A #5AEB9F
split-complementary
#5A5DEB #EB9F5A #A5EB5A
monochromatic
#1619B5 #2327E4 #5A5DEB #9193F2 #C7C8F8

Accessibility & contrast

On white

5.00
#5A5DEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5A5DEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DEB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DEB#FFFFFF#000000##FFFFFF
##5A5DEB1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5deb;
/* rgb */ color: rgb(90, 93, 235);
/* oklch */ color: oklch(55.9% 0.209 276.3);
Tailwind
colors: {
  custom: {
    50: '#978bf2',
    500: '#5a5deb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5deb;
$custom-light: #978bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5deb",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 238.759,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55937,
    "c": 0.20921,
    "h": 276.3
  },
  "luminance": 0.16001
}

Semantic roles & 50–950 ramp

primary
#5A5DEB
secondary
#EAE9B7
accent
#D60BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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