#5A78DB#5A78DB

#5A78DB is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.9% C 0.154 H 268.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A78DB
RGBrgb(90, 120, 219)
HSLhsl(226, 64%, 61%)
HSVhsv(226, 59%, 86%)
CMYKcmyk(58.9%, 45.2%, 0%, 14.1%)
CIE-LABlab(52.64, 18.91, -54.06)
CIE-LCHlch(52.64, 57.28, 289.28°)
OKLaboklab(59.86% -0.0034 -0.1542)
OKLCHoklch(59.86% 0.154 268.7)
XYZxyz(23.7148, 20.7192, 69.7536)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A78DB #DBBD5A
analogous
#5AB8DB #5A78DB #7D5ADB
triadic
#5A78DB #DB5A78 #78DB5A
tetradic
#5A78DB #DB5AB8 #DBBD5A #5ADB7D
square
#5A78DB #DB5AB8 #DBBD5A #5ADB7D
split-complementary
#5A78DB #DB7D5A #B8DB5A
monochromatic
#213D99 #2C51CB #5A78DB #8CA1E6 #BECAF1

Accessibility & contrast

On white

4.08
#5A78DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5A78DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A78DB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A78DB#FFFFFF#000000##000000
##5A78DB1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A84DF
Deuteranopia (green-blind)
#3778D9
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a78db;
/* rgb */ color: rgb(90, 120, 219);
/* oklch */ color: oklch(59.9% 0.154 268.7);
Tailwind
colors: {
  custom: {
    50: '#939ee7',
    500: '#5a78db',
    950: '#000000',
  },
}
SCSS
$custom: #5a78db;
$custom-light: #939ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a78db",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 226.047,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59855,
    "c": 0.15425,
    "h": 268.7
  },
  "luminance": 0.20721
}

Semantic roles & 50–950 ramp

primary
#5A78DB
secondary
#E1D6B0
accent
#A21ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A78DB

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

Preview Lab → · Contrast checker → · Palette generator →

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