#5A5BAE#5A5BAE

#5A5BAE is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.129 H 280.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5A5BAE
RGBrgb(90, 91, 174)
HSLhsl(239, 34%, 52%)
HSVhsv(239, 48%, 68%)
CMYKcmyk(48.3%, 47.7%, 0%, 31.8%)
CIE-LABlab(42.32, 22.33, -44.64)
CIE-LCHlch(42.32, 49.92, 296.57°)
OKLaboklab(51.15% 0.0231 -0.1268)
OKLCHoklch(51.15% 0.129 280.3)
XYZxyz(15.5952, 12.7110, 41.6679)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BAE #AEAD5A
analogous
#5A85AE #5A5BAE #835AAE
triadic
#5A5BAE #AE5A5B #5BAE5A
tetradic
#5A5BAE #AE5A85 #AEAD5A #5AAE83
square
#5A5BAE #AE5A85 #AEAD5A #5AAE83
split-complementary
#5A5BAE #AE835A #85AE5A
monochromatic
#2F2F5F #434488 #5A5BAE #8384C2 #ACADD6

Accessibility & contrast

On white

5.93
#5A5BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5A5BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BAE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BAE#FFFFFF#000000##FFFFFF
##5A5BAE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3867B1
Deuteranopia (green-blind)
#3161AC
Tritanopia (blue-blind)
#3C6D7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a5bae;
/* rgb */ color: rgb(90, 91, 174);
/* oklch */ color: oklch(51.2% 0.129 280.3);
Tailwind
colors: {
  custom: {
    50: '#8e89c7',
    500: '#5a5bae',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bae;
$custom-light: #8e89c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bae",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 174
  },
  "hsl": {
    "h": 239.286,
    "s": 34.146,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51152,
    "c": 0.1289,
    "h": 280.3
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#5A5BAE
secondary
#C4C49F
accent
#C95ECA
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5A5BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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