#5A74DC#5A74DC

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

Color values

HEX#5A74DC
RGBrgb(90, 116, 220)
HSLhsl(228, 65%, 61%)
HSVhsv(228, 59%, 86%)
CMYKcmyk(59.1%, 47.3%, 0%, 13.7%)
CIE-LABlab(51.64, 21.70, -56.23)
CIE-LCHlch(51.64, 60.27, 291.10°)
OKLaboklab(59.11% 0.0009 -0.1606)
OKLCHoklch(59.11% 0.161 270.3)
XYZxyz(23.3758, 19.8299, 70.2920)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A74DC #DCC25A
analogous
#5AB5DC #5A74DC #815ADC
triadic
#5A74DC #DC5A74 #74DC5A
tetradic
#5A74DC #DC5AB5 #DCC25A #5ADC81
square
#5A74DC #DC5AB5 #DCC25A #5ADC81
split-complementary
#5A74DC #DC815A #B5DC5A
monochromatic
#21399B #2C4CCD #5A74DC #8C9FE7 #BFC9F1

Accessibility & contrast

On white

4.23
#5A74DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5A74DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A74DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A74DC#FFFFFF#000000##000000
##5A74DC1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4181E0
Deuteranopia (green-blind)
#2C76DA
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a74dc;
/* rgb */ color: rgb(90, 116, 220);
/* oklch */ color: oklch(59.1% 0.161 270.3);
Tailwind
colors: {
  custom: {
    50: '#939be7',
    500: '#5a74dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a74dc;
$custom-light: #939be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a74dc",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 228,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59114,
    "c": 0.16061,
    "h": 270.3
  },
  "luminance": 0.19832
}

Semantic roles & 50–950 ramp

primary
#5A74DC
secondary
#E2D8B0
accent
#A919CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A74DC

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

Preview Lab → · Contrast checker → · Palette generator →

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