#5A6BB9#5A6BB9

#5A6BB9 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.1% C 0.123 H 272.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5A6BB9
RGBrgb(90, 107, 185)
HSLhsl(229, 40%, 54%)
HSVhsv(229, 51%, 73%)
CMYKcmyk(51.4%, 42.2%, 0%, 27.5%)
CIE-LABlab(47.22, 15.82, -43.27)
CIE-LCHlch(47.22, 46.07, 290.09°)
OKLaboklab(55.08% 0.0054 -0.1227)
OKLCHoklch(55.08% 0.123 272.5)
XYZxyz(18.2283, 16.1907, 48.0541)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6BB9 #B9A85A
analogous
#5A9BB9 #5A6BB9 #795AB9
triadic
#5A6BB9 #B95A6B #6BB95A
tetradic
#5A6BB9 #B95A9B #B9A85A #5AB979
square
#5A6BB9 #B95A9B #B9A85A #5AB979
split-complementary
#5A6BB9 #B9795A #9BB95A
monochromatic
#2D386B #404F96 #5A6BB9 #8592CB #B0B8DD

Accessibility & contrast

On white

4.95
#5A6BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5A6BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6BB9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6BB9#FFFFFF#000000##FFFFFF
##5A6BB91.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B74BC
Deuteranopia (green-blind)
#416CB7
Tritanopia (blue-blind)
#317C89
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a6bb9;
/* rgb */ color: rgb(90, 107, 185);
/* oklch */ color: oklch(55.1% 0.123 272.5);
Tailwind
colors: {
  custom: {
    50: '#8f95ce',
    500: '#5a6bb9',
    950: '#000000',
  },
}
SCSS
$custom: #5a6bb9;
$custom-light: #8f95ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6bb9",
  "rgb": {
    "r": 90,
    "g": 107,
    "b": 185
  },
  "hsl": {
    "h": 229.263,
    "s": 40.426,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55085,
    "c": 0.12278,
    "h": 272.5
  },
  "luminance": 0.16192
}

Semantic roles & 50–950 ramp

primary
#5A6BB9
secondary
#CCC4A3
accent
#BB58D0
background
#F9F9FC
surface
#F1F1F9
border
#CBCBD2
text
#0D0D14
muted
#7E7E82

Preview Lab

Preview with #5A6BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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