#5A6792#5A6792

#5A6792 is a mid, moderate blue. Relative luminance 0.139; OKLCH L 52.1% C 0.070 H 270.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5A6792
RGBrgb(90, 103, 146)
HSLhsl(226, 24%, 46%)
HSVhsv(226, 38%, 57%)
CMYKcmyk(38.4%, 29.5%, 0%, 42.7%)
CIE-LABlab(44.16, 6.33, -25.15)
CIE-LCHlch(44.16, 25.93, 284.14°)
OKLaboklab(52.08% 0.0011 -0.07)
OKLCHoklch(52.08% 0.07 270.9)
XYZxyz(14.2535, 13.9489, 29.1299)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6792 #92855A
analogous
#5A8392 #5A6792 #695A92
triadic
#5A6792 #925A67 #67925A
tetradic
#5A6792 #925A83 #92855A #5A9269
square
#5A6792 #925A83 #92855A #5A9269
split-complementary
#5A6792 #92695A #83925A
monochromatic
#2B3246 #434C6C #5A6792 #7B87AE #A1AAC5

Accessibility & contrast

On white

5.54
#5A6792 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5A6792 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6792
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6792#FFFFFF#000000##FFFFFF
##5A67921.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596B94
Deuteranopia (green-blind)
#546691
Tritanopia (blue-blind)
#497076
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a6792;
/* rgb */ color: rgb(90, 103, 146);
/* oklch */ color: oklch(52.1% 0.070 270.9);
Tailwind
colors: {
  custom: {
    50: '#8b92b2',
    500: '#5a6792',
    950: '#000000',
  },
}
SCSS
$custom: #5a6792;
$custom-light: #8b92b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6792",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 146
  },
  "hsl": {
    "h": 226.071,
    "s": 23.729,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.07005,
    "h": 270.9
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#5A6792
secondary
#B3AC95
accent
#AC68C0
background
#F8F8FA
surface
#F0F0F5
border
#CBCBCF
text
#0C0D11
muted
#7D7D80

Preview Lab

Preview with #5A6792

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

Preview Lab → · Contrast checker → · Palette generator →

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