#5A6FB2#5A6FB2

#5A6FB2 is a mid, moderate blue. Relative luminance 0.168; OKLCH L 55.5% C 0.107 H 269.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5A6FB2
RGBrgb(90, 111, 178)
HSLhsl(226, 36%, 53%)
HSVhsv(226, 49%, 70%)
CMYKcmyk(49.4%, 37.6%, 0%, 30.2%)
CIE-LABlab(47.95, 11.13, -38.05)
CIE-LCHlch(47.95, 39.64, 286.31°)
OKLaboklab(55.52% -0.0009 -0.1074)
OKLCHoklch(55.52% 0.107 269.5)
XYZxyz(17.9342, 16.7558, 44.4000)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FB2 #B29D5A
analogous
#5A9BB2 #5A6FB2 #715AB2
triadic
#5A6FB2 #B25A6F #6FB25A
tetradic
#5A6FB2 #B25A9B #B29D5A #5AB271
square
#5A6FB2 #B25A9B #B29D5A #5AB271
split-complementary
#5A6FB2 #B2715A #9BB25A
monochromatic
#2E3B63 #42548D #5A6FB2 #8493C5 #ADB8D9

Accessibility & contrast

On white

4.83
#5A6FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#5A6FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6FB2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FB2#FFFFFF#000000##FFFFFF
##5A6FB21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#367D88
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a6fb2;
/* rgb */ color: rgb(90, 111, 178);
/* oklch */ color: oklch(55.5% 0.107 269.5);
Tailwind
colors: {
  custom: {
    50: '#8e98c9',
    500: '#5a6fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fb2;
$custom-light: #8e98c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fb2",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 225.682,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55523,
    "c": 0.1074,
    "h": 269.5
  },
  "luminance": 0.16757
}

Semantic roles & 50–950 ramp

primary
#5A6FB2
secondary
#C7BEA1
accent
#B15BCC
background
#F9F9FC
surface
#F1F2F8
border
#CBCCD1
text
#0D0D13
muted
#7E7E82

Preview Lab

Preview with #5A6FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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