#5A6795#5A6795

#5A6795 is a mid, moderate blue. Relative luminance 0.140; OKLCH L 52.2% C 0.075 H 271.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5A6795
RGBrgb(90, 103, 149)
HSLhsl(227, 25%, 47%)
HSVhsv(227, 40%, 58%)
CMYKcmyk(39.6%, 30.9%, 0%, 41.6%)
CIE-LABlab(44.30, 7.21, -26.72)
CIE-LCHlch(44.30, 27.68, 285.10°)
OKLaboklab(52.23% 0.002 -0.0746)
OKLCHoklch(52.23% 0.075 271.5)
XYZxyz(14.4899, 14.0434, 30.3751)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6795 #95885A
analogous
#5A8595 #5A6795 #6B5A95
triadic
#5A6795 #955A67 #67955A
tetradic
#5A6795 #955A85 #95885A #5A956B
square
#5A6795 #955A85 #95885A #5A956B
split-complementary
#5A6795 #956B5A #85955A
monochromatic
#2C3249 #434D6F #5A6795 #7C88B0 #A2AAC7

Accessibility & contrast

On white

5.51
#5A6795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5A6795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6795
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6795#FFFFFF#000000##FFFFFF
##5A67951.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#586B97
Deuteranopia (green-blind)
#536694
Tritanopia (blue-blind)
#487077
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a6795;
/* rgb */ color: rgb(90, 103, 149);
/* oklch */ color: oklch(52.2% 0.075 271.5);
Tailwind
colors: {
  custom: {
    50: '#8b92b4',
    500: '#5a6795',
    950: '#000000',
  },
}
SCSS
$custom: #5a6795;
$custom-light: #8b92b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6795",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 149
  },
  "hsl": {
    "h": 226.78,
    "s": 24.686,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.07461,
    "h": 271.5
  },
  "luminance": 0.14044
}

Semantic roles & 50–950 ramp

primary
#5A6795
secondary
#B5AE96
accent
#AD67C1
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0C0C11
muted
#7D7D80

Preview Lab

Preview with #5A6795

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

Preview Lab → · Contrast checker → · Palette generator →

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