#5A6798#5A6798

#5A6798 is a mid, moderate blue. Relative luminance 0.141; OKLCH L 52.4% C 0.079 H 272.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5A6798
RGBrgb(90, 103, 152)
HSLhsl(227, 26%, 47%)
HSVhsv(227, 41%, 60%)
CMYKcmyk(40.8%, 32.2%, 0%, 40.4%)
CIE-LABlab(44.43, 8.10, -28.29)
CIE-LCHlch(44.43, 29.43, 285.97°)
OKLaboklab(52.39% 0.0029 -0.0791)
OKLCHoklch(52.39% 0.079 272.1)
XYZxyz(14.7325, 14.1405, 31.6528)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6798 #988B5A
analogous
#5A8698 #5A6798 #6C5A98
triadic
#5A6798 #985A67 #67985A
tetradic
#5A6798 #985A86 #988B5A #5A986C
square
#5A6798 #985A86 #988B5A #5A986C
split-complementary
#5A6798 #986C5A #86985A
monochromatic
#2C334B #434D72 #5A6798 #7D88B2 #A4ABC9

Accessibility & contrast

On white

5.49
#5A6798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A6798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6798
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6798#FFFFFF#000000##FFFFFF
##5A67981.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566C9A
Deuteranopia (green-blind)
#516797
Tritanopia (blue-blind)
#467179
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a6798;
/* rgb */ color: rgb(90, 103, 152);
/* oklch */ color: oklch(52.4% 0.079 272.1);
Tailwind
colors: {
  custom: {
    50: '#8b92b6',
    500: '#5a6798',
    950: '#000000',
  },
}
SCSS
$custom: #5a6798;
$custom-light: #8b92b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6798",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 227.419,
    "s": 25.62,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52387,
    "c": 0.07915,
    "h": 272.1
  },
  "luminance": 0.14141
}

Semantic roles & 50–950 ramp

primary
#5A6798
secondary
#B7B097
accent
#AF66C2
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0C0C11
muted
#7D7D80

Preview Lab

Preview with #5A6798

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

Preview Lab → · Contrast checker → · Palette generator →

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