#5A5EDA#5A5EDA

#5A5EDA is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.8% C 0.186 H 277.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5A5EDA
RGBrgb(90, 94, 218)
HSLhsl(238, 63%, 60%)
HSVhsv(238, 59%, 85%)
CMYKcmyk(58.7%, 56.9%, 0%, 14.5%)
CIE-LABlab(45.96, 34.58, -64.26)
CIE-LCHlch(45.96, 72.97, 298.28°)
OKLaboklab(54.8% 0.0225 -0.1845)
OKLCHoklch(54.8% 0.186 277)
XYZxyz(20.8700, 15.2395, 68.1578)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EDA #DAD65A
analogous
#5A9EDA #5A5EDA #965ADA
triadic
#5A5EDA #DA5A5E #5EDA5A
tetradic
#5A5EDA #DA5A9E #DAD65A #5ADA96
square
#5A5EDA #DA5A9E #DAD65A #5ADA96
split-complementary
#5A5EDA #DA965A #9EDA5A
monochromatic
#222698 #2D32CA #5A5EDA #8C8FE5 #BEC0F0

Accessibility & contrast

On white

5.19
#5A5EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5A5EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EDA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EDA#FFFFFF#000000##FFFFFF
##5A5EDA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DE
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5eda;
/* rgb */ color: rgb(90, 94, 218);
/* oklch */ color: oklch(54.8% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#948be6',
    500: '#5a5eda',
    950: '#000000',
  },
}
SCSS
$custom: #5a5eda;
$custom-light: #948be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5eda",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 218
  },
  "hsl": {
    "h": 238.125,
    "s": 63.366,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54797,
    "c": 0.18584,
    "h": 277
  },
  "luminance": 0.15241
}

Semantic roles & 50–950 ramp

primary
#5A5EDA
secondary
#E0DFAF
accent
#C61ACB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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