#5A6799#5A6799

#5A6799 is a mid, moderate blue. Relative luminance 0.142; OKLCH L 52.4% C 0.081 H 272.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A6799
RGBrgb(90, 103, 153)
HSLhsl(228, 26%, 48%)
HSVhsv(228, 41%, 60%)
CMYKcmyk(41.2%, 32.7%, 0%, 40%)
CIE-LABlab(44.48, 8.39, -28.81)
CIE-LCHlch(44.48, 30.01, 286.24°)
OKLaboklab(52.44% 0.0032 -0.0806)
OKLCHoklch(52.44% 0.081 272.2)
XYZxyz(14.8147, 14.1734, 32.0859)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6799 #998C5A
analogous
#5A8699 #5A6799 #6C5A99
triadic
#5A6799 #995A67 #67995A
tetradic
#5A6799 #995A86 #998C5A #5A996C
square
#5A6799 #995A86 #998C5A #5A996C
split-complementary
#5A6799 #996C5A #86995A
monochromatic
#2D334C #434D72 #5A6799 #7D88B3 #A4ACC9

Accessibility & contrast

On white

5.48
#5A6799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A6799
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6799#FFFFFF#000000##FFFFFF
##5A67991.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a6799;
/* rgb */ color: rgb(90, 103, 153);
/* oklch */ color: oklch(52.4% 0.081 272.2);
Tailwind
colors: {
  custom: {
    50: '#8b92b7',
    500: '#5a6799',
    950: '#000000',
  },
}
SCSS
$custom: #5a6799;
$custom-light: #8b92b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6799",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 153
  },
  "hsl": {
    "h": 227.619,
    "s": 25.926,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.08067,
    "h": 272.2
  },
  "luminance": 0.14174
}

Semantic roles & 50–950 ramp

primary
#5A6799
secondary
#B7B198
accent
#AF65C2
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0C0C11
muted
#7D7D80

Preview Lab

Preview with #5A6799

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

Preview Lab → · Contrast checker → · Palette generator →

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