#5A6791#5A6791

#5A6791 is a mid, moderate blue. Relative luminance 0.139; OKLCH L 52.0% C 0.069 H 270.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5A6791
RGBrgb(90, 103, 145)
HSLhsl(226, 23%, 46%)
HSVhsv(226, 38%, 57%)
CMYKcmyk(37.9%, 29%, 0%, 43.1%)
CIE-LABlab(44.12, 6.04, -24.62)
CIE-LCHlch(44.12, 25.35, 283.79°)
OKLaboklab(52.03% 0.0008 -0.0685)
OKLCHoklch(52.03% 0.069 270.7)
XYZxyz(14.1760, 13.9179, 28.7221)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6791 #91845A
analogous
#5A8291 #5A6791 #685A91
triadic
#5A6791 #915A67 #67915A
tetradic
#5A6791 #915A82 #91845A #5A9168
square
#5A6791 #915A82 #91845A #5A9168
split-complementary
#5A6791 #91685A #82915A
monochromatic
#2B3145 #434C6B #5A6791 #7B87AD #A1A9C5

Accessibility & contrast

On white

5.55
#5A6791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5A6791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6791
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6791#FFFFFF#000000##FFFFFF
##5A67911.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596B93
Deuteranopia (green-blind)
#546690
Tritanopia (blue-blind)
#496F76
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a6791;
/* rgb */ color: rgb(90, 103, 145);
/* oklch */ color: oklch(52.0% 0.069 270.7);
Tailwind
colors: {
  custom: {
    50: '#8a92b1',
    500: '#5a6791',
    950: '#000000',
  },
}
SCSS
$custom: #5a6791;
$custom-light: #8a92b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6791",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 145
  },
  "hsl": {
    "h": 225.818,
    "s": 23.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52034,
    "c": 0.06853,
    "h": 270.7
  },
  "luminance": 0.13918
}

Semantic roles & 50–950 ramp

primary
#5A6791
secondary
#B2AB94
accent
#AB68C0
background
#F8F8FA
surface
#F0F0F5
border
#CBCBCF
text
#0C0D10
muted
#7D7D7F

Preview Lab

Preview with #5A6791

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

Preview Lab → · Contrast checker → · Palette generator →

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