#5A5EEF#5A5EEF

#5A5EEF is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.4% C 0.213 H 276.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A5EEF
RGBrgb(90, 94, 239)
HSLhsl(238, 82%, 65%)
HSVhsv(238, 62%, 94%)
CMYKcmyk(62.3%, 60.7%, 0%, 6.3%)
CIE-LABlab(47.51, 41.39, -73.61)
CIE-LCHlch(47.51, 84.45, 299.35°)
OKLaboklab(56.43% 0.0221 -0.212)
OKLCHoklch(56.43% 0.213 276)
XYZxyz(23.7941, 16.4091, 83.5580)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EEF #EFEB5A
analogous
#5AA9EF #5A5EEF #A05AEF
triadic
#5A5EEF #EF5A5E #5EEF5A
tetradic
#5A5EEF #EF5AA9 #EFEB5A #5AEFA0
square
#5A5EEF #EF5AA9 #EFEB5A #5AEFA0
split-complementary
#5A5EEF #EFA05A #A9EF5A
monochromatic
#1217BC #2228EA #5A5EEF #9294F4 #CACBFA

Accessibility & contrast

On white

4.90
#5A5EEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A5EEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EEF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EEF#FFFFFF#000000##FFFFFF
##5A5EEF1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#006AEC
Tritanopia (blue-blind)
#00829E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5eef;
/* rgb */ color: rgb(90, 94, 239);
/* oklch */ color: oklch(56.4% 0.213 276.0);
Tailwind
colors: {
  custom: {
    50: '#978cf5',
    500: '#5a5eef',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eef;
$custom-light: #978cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eef",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 239
  },
  "hsl": {
    "h": 238.389,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56425,
    "c": 0.21312,
    "h": 276
  },
  "luminance": 0.16411
}

Semantic roles & 50–950 ramp

primary
#5A5EEF
secondary
#ECEBB9
accent
#D907DF
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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