#5A78EB#5A78EB

#5A78EB is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.9% C 0.176 H 269.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A78EB
RGBrgb(90, 120, 235)
HSLhsl(228, 78%, 64%)
HSVhsv(228, 62%, 92%)
CMYKcmyk(61.7%, 48.9%, 0%, 7.8%)
CIE-LABlab(53.60, 24.24, -61.50)
CIE-LCHlch(53.60, 66.11, 291.51°)
OKLaboklab(60.9% -0.0013 -0.1761)
OKLCHoklch(60.9% 0.176 269.6)
XYZxyz(25.9233, 21.6025, 81.3847)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78EB #EBCD5A
analogous
#5AC0EB #5A78EB #845AEB
triadic
#5A78EB #EB5A78 #78EB5A
tetradic
#5A78EB #EB5AC0 #EBCD5A #5AEB84
square
#5A78EB #EB5AC0 #EBCD5A #5AEB84
split-complementary
#5A78EB #EB845A #C0EB5A
monochromatic
#1637B5 #234BE4 #5A78EB #91A5F2 #C7D1F8

Accessibility & contrast

On white

3.95
#5A78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5A78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78EB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78EB#FFFFFF#000000##000000
##5A78EB1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B87EF
Deuteranopia (green-blind)
#197AE9
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a78eb;
/* rgb */ color: rgb(90, 120, 235);
/* oklch */ color: oklch(60.9% 0.176 269.6);
Tailwind
colors: {
  custom: {
    50: '#959ef2',
    500: '#5a78eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a78eb;
$custom-light: #959ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78eb",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 227.586,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60897,
    "c": 0.17609,
    "h": 269.6
  },
  "luminance": 0.21605
}

Semantic roles & 50–950 ramp

primary
#5A78EB
secondary
#EADFB7
accent
#B00BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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