#5A5AEE#5A5AEE

#5A5AEE is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.7% C 0.217 H 276.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A5AEE
RGBrgb(90, 90, 238)
HSLhsl(240, 81%, 64%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(62.2%, 62.2%, 0%, 6.7%)
CIE-LABlab(46.52, 43.44, -74.66)
CIE-LCHlch(46.52, 86.38, 300.19°)
OKLaboklab(55.68% 0.0254 -0.2151)
OKLCHoklch(55.68% 0.217 276.7)
XYZxyz(23.3002, 15.6572, 82.6666)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AEE #EEEE5A
analogous
#5AA4EE #5A5AEE #A45AEE
triadic
#5A5AEE #EE5A5A #5AEE5A
tetradic
#5A5AEE #EE5AA4 #EEEE5A #5AEEA4
square
#5A5AEE #EE5AA4 #EEEE5A #5AEEA4
split-complementary
#5A5AEE #EEA45A #A4EE5A
monochromatic
#1313BA #2323E8 #5A5AEE #9191F4 #C9C9F9

Accessibility & contrast

On white

5.08
#5A5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A5AEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AEE
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AEE#FFFFFF#000000##FFFFFF
##5A5AEE1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#0068EB
Tritanopia (blue-blind)
#007F9C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5aee;
/* rgb */ color: rgb(90, 90, 238);
/* oklch */ color: oklch(55.7% 0.217 276.7);
Tailwind
colors: {
  custom: {
    50: '#9889f5',
    500: '#5a5aee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aee;
$custom-light: #9889f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aee",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 240,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55678,
    "c": 0.21656,
    "h": 276.7
  },
  "luminance": 0.15659
}

Semantic roles & 50–950 ramp

primary
#5A5AEE
secondary
#ECECB8
accent
#DE08DE
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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