#5A6AAA#5A6AAA

#5A6AAA is a mid, moderate blue. Relative luminance 0.154; OKLCH L 54.0% C 0.102 H 272.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A6AAA
RGBrgb(90, 106, 170)
HSLhsl(228, 32%, 51%)
HSVhsv(228, 47%, 67%)
CMYKcmyk(47.1%, 37.6%, 0%, 33.3%)
CIE-LABlab(46.15, 11.71, -36.21)
CIE-LCHlch(46.15, 38.06, 287.92°)
OKLaboklab(54.01% 0.0035 -0.1021)
OKLCHoklch(54.01% 0.102 272)
XYZxyz(16.6239, 15.3831, 40.1157)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6AAA #AA9A5A
analogous
#5A92AA #5A6AAA #725AAA
triadic
#5A6AAA #AA5A6A #6AAA5A
tetradic
#5A6AAA #AA5A92 #AA9A5A #5AAA72
square
#5A6AAA #AA5A92 #AA9A5A #5AAA72
split-complementary
#5A6AAA #AA725A #92AA5A
monochromatic
#2F385B #445083 #5A6AAA #828EBF #ABB3D4

Accessibility & contrast

On white

5.15
#5A6AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A6AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6AAA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6AAA#FFFFFF#000000##FFFFFF
##5A6AAA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5271AD
Deuteranopia (green-blind)
#4B6AA9
Tritanopia (blue-blind)
#3C7782
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a6aaa;
/* rgb */ color: rgb(90, 106, 170);
/* oklch */ color: oklch(54.0% 0.102 272.0);
Tailwind
colors: {
  custom: {
    50: '#8d94c3',
    500: '#5a6aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5a6aaa;
$custom-light: #8d94c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6aaa",
  "rgb": {
    "r": 90,
    "g": 106,
    "b": 170
  },
  "hsl": {
    "h": 228,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54005,
    "c": 0.10213,
    "h": 272
  },
  "luminance": 0.15384
}

Semantic roles & 50–950 ramp

primary
#5A6AAA
secondary
#C2BB9E
accent
#B360C8
background
#F8F9FC
surface
#F0F1F8
border
#CBCBD1
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5A6AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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