#5A74DB#5A74DB

#5A74DB is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.0% C 0.159 H 270.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A74DB
RGBrgb(90, 116, 219)
HSLhsl(228, 64%, 61%)
HSVhsv(228, 59%, 86%)
CMYKcmyk(58.9%, 47%, 0%, 14.1%)
CIE-LABlab(51.58, 21.36, -55.76)
CIE-LCHlch(51.58, 59.71, 290.96°)
OKLaboklab(59.05% 0.0007 -0.1592)
OKLCHoklch(59.05% 0.159 270.3)
XYZxyz(23.2438, 19.7771, 69.5966)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A74DB #DBC15A
analogous
#5AB4DB #5A74DB #805ADB
triadic
#5A74DB #DB5A74 #74DB5A
tetradic
#5A74DB #DB5AB4 #DBC15A #5ADB80
square
#5A74DB #DB5AB4 #DBC15A #5ADB80
split-complementary
#5A74DB #DB805A #B4DB5A
monochromatic
#213A99 #2C4CCB #5A74DB #8C9EE6 #BEC9F1

Accessibility & contrast

On white

4.24
#5A74DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5A74DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A74DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A74DB#FFFFFF#000000##000000
##5A74DB1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4281DF
Deuteranopia (green-blind)
#2D76D9
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a74db;
/* rgb */ color: rgb(90, 116, 219);
/* oklch */ color: oklch(59.0% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#939be7',
    500: '#5a74db',
    950: '#000000',
  },
}
SCSS
$custom: #5a74db;
$custom-light: #939be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a74db",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 227.907,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59049,
    "c": 0.15923,
    "h": 270.3
  },
  "luminance": 0.19779
}

Semantic roles & 50–950 ramp

primary
#5A74DB
secondary
#E1D7B0
accent
#A81ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A74DB

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

Preview Lab → · Contrast checker → · Palette generator →

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