#5A5EEB#5A5EEB

#5A5EEB is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.1% C 0.208 H 276.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A5EEB
RGBrgb(90, 94, 235)
HSLhsl(238, 78%, 64%)
HSVhsv(238, 62%, 92%)
CMYKcmyk(61.7%, 60%, 0%, 7.8%)
CIE-LABlab(47.20, 40.09, -71.86)
CIE-LCHlch(47.20, 82.29, 299.16°)
OKLaboklab(56.11% 0.0223 -0.2068)
OKLCHoklch(56.11% 0.208 276.1)
XYZxyz(23.2097, 16.1754, 80.4802)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EEB #EBE75A
analogous
#5AA6EB #5A5EEB #9E5AEB
triadic
#5A5EEB #EB5A5E #5EEB5A
tetradic
#5A5EEB #EB5AA6 #EBE75A #5AEB9E
square
#5A5EEB #EB5AA6 #EBE75A #5AEB9E
split-complementary
#5A5EEB #EB9E5A #A6EB5A
monochromatic
#161AB5 #2329E4 #5A5EEB #9193F2 #C7C9F8

Accessibility & contrast

On white

4.96
#5A5EEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5A5EEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EEB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EEB#FFFFFF#000000##FFFFFF
##5A5EEB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5eeb;
/* rgb */ color: rgb(90, 94, 235);
/* oklch */ color: oklch(56.1% 0.208 276.1);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5a5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eeb;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eeb",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 238.345,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56107,
    "c": 0.20801,
    "h": 276.1
  },
  "luminance": 0.16177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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