#5A628A#5A628A

#5A628A is a mid, moderate blue. Relative luminance 0.127; OKLCH L 50.6% C 0.064 H 275.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5A628A
RGBrgb(90, 98, 138)
HSLhsl(230, 21%, 45%)
HSVhsv(230, 35%, 54%)
CMYKcmyk(34.8%, 29%, 0%, 45.9%)
CIE-LABlab(42.37, 7.12, -23.12)
CIE-LCHlch(42.37, 24.20, 287.12°)
OKLaboklab(50.58% 0.0058 -0.0642)
OKLCHoklch(50.58% 0.064 275.2)
XYZxyz(13.1703, 12.7435, 25.8056)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A628A #8A825A
analogous
#5A7A8A #5A628A #6A5A8A
triadic
#5A628A #8A5A62 #628A5A
tetradic
#5A628A #8A5A7A #8A825A #5A8A6A
square
#5A628A #8A5A7A #8A825A #5A8A6A
split-complementary
#5A628A #8A6A5A #7A8A5A
monochromatic
#2A2D40 #424865 #5A628A #7981A8 #9EA4C0

Accessibility & contrast

On white

5.92
#5A628A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5A628A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A628A
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A628A#FFFFFF#000000##FFFFFF
##5A628A1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56668C
Deuteranopia (green-blind)
#526289
Tritanopia (blue-blind)
#4D6A70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a628a;
/* rgb */ color: rgb(90, 98, 138);
/* oklch */ color: oklch(50.6% 0.064 275.2);
Tailwind
colors: {
  custom: {
    50: '#8a8eac',
    500: '#5a628a',
    950: '#000000',
  },
}
SCSS
$custom: #5a628a;
$custom-light: #8a8eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a628a",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 138
  },
  "hsl": {
    "h": 230,
    "s": 21.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5058,
    "c": 0.06449,
    "h": 275.2
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

primary
#5A628A
secondary
#AEA992
accent
#B06ABE
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0C0C10
muted
#7D7D7F

Preview Lab

Preview with #5A628A

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

Preview Lab → · Contrast checker → · Palette generator →

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