#5A5EE0#5A5EE0

#5A5EE0 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.3% C 0.194 H 276.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5A5EE0
RGBrgb(90, 94, 224)
HSLhsl(238, 68%, 62%)
HSVhsv(238, 60%, 88%)
CMYKcmyk(59.8%, 58%, 0%, 12.2%)
CIE-LABlab(46.39, 36.52, -66.97)
CIE-LCHlch(46.39, 76.28, 298.61°)
OKLaboklab(55.25% 0.0225 -0.1924)
OKLCHoklch(55.25% 0.194 276.7)
XYZxyz(21.6693, 15.5592, 72.3679)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EE0 #E0DC5A
analogous
#5AA1E0 #5A5EE0 #995AE0
triadic
#5A5EE0 #E05A5E #5EE05A
tetradic
#5A5EE0 #E05AA1 #E0DC5A #5AE099
square
#5A5EE0 #E05AA1 #E0DC5A #5AE099
split-complementary
#5A5EE0 #E0995A #A1E05A
monochromatic
#1E22A1 #282DD5 #5A5EE0 #8E90EA #C1C3F3

Accessibility & contrast

On white

5.11
#5A5EE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5A5EE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EE0
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EE0#FFFFFF#000000##FFFFFF
##5A5EE01.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E4
Deuteranopia (green-blind)
#0068DD
Tritanopia (blue-blind)
#007D96
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5ee0;
/* rgb */ color: rgb(90, 94, 224);
/* oklch */ color: oklch(55.3% 0.194 276.7);
Tailwind
colors: {
  custom: {
    50: '#958beb',
    500: '#5a5ee0',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ee0;
$custom-light: #958beb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ee0",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 224
  },
  "hsl": {
    "h": 238.209,
    "s": 68.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.55252,
    "c": 0.19375,
    "h": 276.7
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#5A5EE0
secondary
#E4E2B2
accent
#CB15D0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5EE0

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

Preview Lab → · Contrast checker → · Palette generator →

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