#5A5AAF#5A5AAF

#5A5AAF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.132 H 280.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5A5AAF
RGBrgb(90, 90, 175)
HSLhsl(240, 35%, 52%)
HSVhsv(240, 49%, 69%)
CMYKcmyk(48.6%, 48.6%, 0%, 31.4%)
CIE-LABlab(42.12, 23.27, -45.55)
CIE-LCHlch(42.12, 51.15, 297.06°)
OKLaboklab(51.02% 0.0244 -0.1295)
OKLCHoklch(51.02% 0.132 280.7)
XYZxyz(15.6081, 12.5803, 42.1549)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AAF #AFAF5A
analogous
#5A85AF #5A5AAF #855AAF
triadic
#5A5AAF #AF5A5A #5AAF5A
tetradic
#5A5AAF #AF5A85 #AFAF5A #5AAF85
square
#5A5AAF #AF5A85 #AFAF5A #5AAF85
split-complementary
#5A5AAF #AF855A #85AF5A
monochromatic
#2F2F60 #434389 #5A5AAF #8383C3 #ACACD7

Accessibility & contrast

On white

5.97
#5A5AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A5AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AAF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AAF#FFFFFF#000000##FFFFFF
##5A5AAF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B2
Deuteranopia (green-blind)
#2E60AD
Tritanopia (blue-blind)
#3B6C7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a5aaf;
/* rgb */ color: rgb(90, 90, 175);
/* oklch */ color: oklch(51.0% 0.132 280.7);
Tailwind
colors: {
  custom: {
    50: '#8e88c7',
    500: '#5a5aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aaf;
$custom-light: #8e88c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aaf",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5102,
    "c": 0.13178,
    "h": 280.7
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#5A5AAF
secondary
#C5C5A0
accent
#CB5DCB
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5A5AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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