#5A5ABA#5A5ABA

#5A5ABA is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.147 H 279.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5A5ABA
RGBrgb(90, 90, 186)
HSLhsl(240, 41%, 54%)
HSVhsv(240, 52%, 73%)
CMYKcmyk(51.6%, 51.6%, 0%, 27.1%)
CIE-LABlab(42.81, 26.74, -50.90)
CIE-LCHlch(42.81, 57.50, 297.72°)
OKLaboklab(51.76% 0.0254 -0.1452)
OKLCHoklch(51.76% 0.147 279.9)
XYZxyz(16.7328, 13.0302, 48.0782)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ABA #BABA5A
analogous
#5A8ABA #5A5ABA #8A5ABA
triadic
#5A5ABA #BA5A5A #5ABA5A
tetradic
#5A5ABA #BA5A8A #BABA5A #5ABA8A
square
#5A5ABA #BA5A8A #BABA5A #5ABA8A
split-complementary
#5A5ABA #BA8A5A #8ABA5A
monochromatic
#2D2D6C #3F3F97 #5A5ABA #8585CC #B0B0DE

Accessibility & contrast

On white

5.82
#5A5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5A5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ABA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ABA#FFFFFF#000000##FFFFFF
##5A5ABA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BD
Deuteranopia (green-blind)
#1F61B8
Tritanopia (blue-blind)
#336F81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a5aba;
/* rgb */ color: rgb(90, 90, 186);
/* oklch */ color: oklch(51.8% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#8f88cf',
    500: '#5a5aba',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aba;
$custom-light: #8f88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aba",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51755,
    "c": 0.14742,
    "h": 279.9
  },
  "luminance": 0.13031
}

Semantic roles & 50–950 ramp

primary
#5A5ABA
secondary
#CCCCA3
accent
#D157D1
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5A5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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