#5A5EA5#5A5EA5

#5A5EA5 is a mid, moderate blue. Relative luminance 0.129; OKLCH L 51.2% C 0.111 H 279.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5A5EA5
RGBrgb(90, 94, 165)
HSLhsl(237, 29%, 50%)
HSVhsv(237, 45%, 65%)
CMYKcmyk(45.5%, 43%, 0%, 35.3%)
CIE-LABlab(42.60, 17.65, -38.88)
CIE-LCHlch(42.60, 42.70, 294.41°)
OKLaboklab(51.2% 0.0179 -0.1099)
OKLCHoklch(51.2% 0.111 279.2)
XYZxyz(15.0086, 12.8949, 37.2882)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EA5 #A5A15A
analogous
#5A84A5 #5A5EA5 #7B5AA5
triadic
#5A5EA5 #A55A5E #5EA55A
tetradic
#5A5EA5 #A55A84 #A5A15A #5AA57B
square
#5A5EA5 #A55A84 #A5A15A #5AA57B
split-complementary
#5A5EA5 #A57B5A #84A55A
monochromatic
#2F3156 #44477D #5A5EA5 #8285BB #A9ABD0

Accessibility & contrast

On white

5.87
#5A5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5A5EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EA5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EA5#FFFFFF#000000##FFFFFF
##5A5EA51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4368A8
Deuteranopia (green-blind)
#3E62A3
Tritanopia (blue-blind)
#416D79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a5ea5;
/* rgb */ color: rgb(90, 94, 165);
/* oklch */ color: oklch(51.2% 0.111 279.2);
Tailwind
colors: {
  custom: {
    50: '#8d8bc0',
    500: '#5a5ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ea5;
$custom-light: #8d8bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ea5",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 236.8,
    "s": 29.412,
    "l": 50
  },
  "oklch": {
    "l": 0.51197,
    "c": 0.11138,
    "h": 279.2
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#5A5EA5
secondary
#BEBC9D
accent
#C062C6
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5A5EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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