#5A6BCF#5A6BCF

#5A6BCF is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.5% C 0.154 H 273.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5A6BCF
RGBrgb(90, 107, 207)
HSLhsl(231, 55%, 58%)
HSVhsv(231, 57%, 81%)
CMYKcmyk(56.5%, 48.3%, 0%, 18.8%)
CIE-LABlab(48.50, 22.96, -53.89)
CIE-LCHlch(48.50, 58.57, 293.08°)
OKLaboklab(56.47% 0.0087 -0.1538)
OKLCHoklch(56.47% 0.154 273.2)
XYZxyz(20.7330, 17.1925, 61.2453)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6BCF #CFBE5A
analogous
#5AA5CF #5A6BCF #835ACF
triadic
#5A6BCF #CF5A6B #6BCF5A
tetradic
#5A6BCF #CF5AA5 #CFBE5A #5ACF83
square
#5A6BCF #CF5AA5 #CFBE5A #5ACF83
split-complementary
#5A6BCF #CF835A #A5CF5A
monochromatic
#273587 #3548B7 #5A6BCF #8996DD #B9C0EB

Accessibility & contrast

On white

4.73
#5A6BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5A6BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6BCF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6BCF#FFFFFF#000000##FFFFFF
##5A6BCF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A78D3
Deuteranopia (green-blind)
#296ECD
Tritanopia (blue-blind)
#118193
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a6bcf;
/* rgb */ color: rgb(90, 107, 207);
/* oklch */ color: oklch(56.5% 0.154 273.2);
Tailwind
colors: {
  custom: {
    50: '#9295de',
    500: '#5a6bcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a6bcf;
$custom-light: #9295de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6bcf",
  "rgb": {
    "r": 90,
    "g": 107,
    "b": 207
  },
  "hsl": {
    "h": 231.282,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56473,
    "c": 0.15407,
    "h": 273.2
  },
  "luminance": 0.17194
}

Semantic roles & 50–950 ramp

primary
#5A6BCF
secondary
#DAD3AB
accent
#C94ADE
background
#F9F9FD
surface
#F2F1FB
border
#CCCBD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5A6BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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