#5A5AE4#5A5AE4

#5A5AE4 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 54.9% C 0.204 H 277.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5A5AE4
RGBrgb(90, 90, 228)
HSLhsl(240, 72%, 62%)
HSVhsv(240, 61%, 89%)
CMYKcmyk(60.5%, 60.5%, 0%, 10.6%)
CIE-LABlab(45.75, 40.23, -70.27)
CIE-LCHlch(45.75, 80.97, 299.79°)
OKLaboklab(54.87% 0.026 -0.2022)
OKLCHoklch(54.87% 0.204 277.3)
XYZxyz(21.8717, 15.0857, 75.1430)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AE4 #E4E45A
analogous
#5A9FE4 #5A5AE4 #9F5AE4
triadic
#5A5AE4 #E45A5A #5AE45A
tetradic
#5A5AE4 #E45A9F #E4E45A #5AE49F
square
#5A5AE4 #E45A9F #E4E45A #5AE49F
split-complementary
#5A5AE4 #E49F5A #9FE45A
monochromatic
#1C1CA8 #2525DB #5A5AE4 #8F8FED #C3C3F5

Accessibility & contrast

On white

5.23
#5A5AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5A5AE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AE4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AE4#FFFFFF#000000##FFFFFF
##5A5AE41.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E8
Deuteranopia (green-blind)
#0066E1
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5ae4;
/* rgb */ color: rgb(90, 90, 228);
/* oklch */ color: oklch(54.9% 0.204 277.3);
Tailwind
colors: {
  custom: {
    50: '#9689ed',
    500: '#5a5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ae4;
$custom-light: #9689ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ae4",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 240,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54873,
    "c": 0.20384,
    "h": 277.3
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#5A5AE4
secondary
#E6E6B4
accent
#D412D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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