#5A5EDB#5A5EDB

#5A5EDB is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.187 H 276.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5A5EDB
RGBrgb(90, 94, 219)
HSLhsl(238, 64%, 61%)
HSVhsv(238, 59%, 86%)
CMYKcmyk(58.9%, 57.1%, 0%, 14.1%)
CIE-LABlab(46.03, 34.90, -64.71)
CIE-LCHlch(46.03, 73.52, 298.34°)
OKLaboklab(54.87% 0.0225 -0.1858)
OKLCHoklch(54.87% 0.187 276.9)
XYZxyz(21.0012, 15.2920, 68.8491)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EDB #DBD75A
analogous
#5A9EDB #5A5EDB #975ADB
triadic
#5A5EDB #DB5A5E #5EDB5A
tetradic
#5A5EDB #DB5A9E #DBD75A #5ADB97
square
#5A5EDB #DB5A9E #DBD75A #5ADB97
split-complementary
#5A5EDB #DB975A #9EDB5A
monochromatic
#212599 #2C31CB #5A5EDB #8C8FE6 #BEC0F1

Accessibility & contrast

On white

5.17
#5A5EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5A5EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EDB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EDB#FFFFFF#000000##FFFFFF
##5A5EDB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#007C93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5edb;
/* rgb */ color: rgb(90, 94, 219);
/* oklch */ color: oklch(54.9% 0.187 276.9);
Tailwind
colors: {
  custom: {
    50: '#948be7',
    500: '#5a5edb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5edb;
$custom-light: #948be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5edb",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 219
  },
  "hsl": {
    "h": 238.14,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54872,
    "c": 0.18716,
    "h": 276.9
  },
  "luminance": 0.15294
}

Semantic roles & 50–950 ramp

primary
#5A5EDB
secondary
#E1DFB0
accent
#C61ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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