#5A5AE3#5A5AE3

#5A5AE3 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.8% C 0.203 H 277.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5A5AE3
RGBrgb(90, 90, 227)
HSLhsl(240, 71%, 62%)
HSVhsv(240, 60%, 89%)
CMYKcmyk(60.4%, 60.4%, 0%, 11%)
CIE-LABlab(45.68, 39.91, -69.83)
CIE-LCHlch(45.68, 80.43, 299.75°)
OKLaboklab(54.79% 0.026 -0.2009)
OKLCHoklch(54.79% 0.203 277.4)
XYZxyz(21.7333, 15.0304, 74.4140)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AE3 #E3E35A
analogous
#5A9FE3 #5A5AE3 #9F5AE3
triadic
#5A5AE3 #E35A5A #5AE35A
tetradic
#5A5AE3 #E35A9F #E3E35A #5AE39F
square
#5A5AE3 #E35A9F #E3E35A #5AE39F
split-complementary
#5A5AE3 #E39F5A #9FE35A
monochromatic
#1C1CA6 #2626DA #5A5AE3 #8E8EEC #C3C3F5

Accessibility & contrast

On white

5.24
#5A5AE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5A5AE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AE3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AE3#FFFFFF#000000##FFFFFF
##5A5AE31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5ae3;
/* rgb */ color: rgb(90, 90, 227);
/* oklch */ color: oklch(54.8% 0.203 277.4);
Tailwind
colors: {
  custom: {
    50: '#9689ed',
    500: '#5a5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ae3;
$custom-light: #9689ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ae3",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 240,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54794,
    "c": 0.20255,
    "h": 277.4
  },
  "luminance": 0.15032
}

Semantic roles & 50–950 ramp

primary
#5A5AE3
secondary
#E6E6B3
accent
#D312D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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