#5A5EEA#5A5EEA

#5A5EEA is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.0% C 0.207 H 276.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5A5EEA
RGBrgb(90, 94, 234)
HSLhsl(238, 77%, 64%)
HSVhsv(238, 62%, 92%)
CMYKcmyk(61.5%, 59.8%, 0%, 8.2%)
CIE-LABlab(47.13, 39.77, -71.42)
CIE-LCHlch(47.13, 81.74, 299.11°)
OKLaboklab(56.03% 0.0223 -0.2055)
OKLCHoklch(56.03% 0.207 276.2)
XYZxyz(23.0656, 16.1177, 79.7215)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EEA #EAE65A
analogous
#5AA6EA #5A5EEA #9E5AEA
triadic
#5A5EEA #EA5A5E #5EEA5A
tetradic
#5A5EEA #EA5AA6 #EAE65A #5AEA9E
square
#5A5EEA #EA5AA6 #EAE65A #5AEA9E
split-complementary
#5A5EEA #EA9E5A #A6EA5A
monochromatic
#171BB3 #2429E3 #5A5EEA #9093F1 #C7C8F8

Accessibility & contrast

On white

4.97
#5A5EEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5A5EEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EEA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EEA#FFFFFF#000000##FFFFFF
##5A5EEA1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5eea;
/* rgb */ color: rgb(90, 94, 234);
/* oklch */ color: oklch(56.0% 0.207 276.2);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5a5eea',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eea;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eea",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 238.333,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.20673,
    "h": 276.2
  },
  "luminance": 0.1612
}

Semantic roles & 50–950 ramp

primary
#5A5EEA
secondary
#E9E8B6
accent
#D40CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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