#5A6FC0#5A6FC0

#5A6FC0 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.3% C 0.128 H 270.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5A6FC0
RGBrgb(90, 111, 192)
HSLhsl(228, 45%, 55%)
HSVhsv(228, 53%, 75%)
CMYKcmyk(53.1%, 42.2%, 0%, 24.7%)
CIE-LABlab(48.69, 15.60, -44.97)
CIE-LCHlch(48.69, 47.60, 289.13°)
OKLaboklab(56.34% 0.002 -0.1276)
OKLCHoklch(56.34% 0.128 270.9)
XYZxyz(19.4122, 17.3470, 52.1843)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FC0 #C0AB5A
analogous
#5AA2C0 #5A6FC0 #785AC0
triadic
#5A6FC0 #C05A6F #6FC05A
tetradic
#5A6FC0 #C05AA2 #C0AB5A #5AC078
square
#5A6FC0 #C05AA2 #C0AB5A #5AC078
split-complementary
#5A6FC0 #C0785A #A2C05A
monochromatic
#2C3B73 #3D51A0 #5A6FC0 #8696D1 #B3BCE2

Accessibility & contrast

On white

4.70
#5A6FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5A6FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6FC0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FC0#FFFFFF#000000##FFFFFF
##5A6FC01.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D78C3
Deuteranopia (green-blind)
#4270BE
Tritanopia (blue-blind)
#29818E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a6fc0;
/* rgb */ color: rgb(90, 111, 192);
/* oklch */ color: oklch(56.3% 0.128 270.9);
Tailwind
colors: {
  custom: {
    50: '#8f98d3',
    500: '#5a6fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fc0;
$custom-light: #8f98d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fc0",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 192
  },
  "hsl": {
    "h": 227.647,
    "s": 44.737,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56338,
    "c": 0.12765,
    "h": 270.9
  },
  "luminance": 0.17348
}

Semantic roles & 50–950 ramp

primary
#5A6FC0
secondary
#D0C7A6
accent
#BA53D4
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5A6FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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