#5A7CD4#5A7CD4

#5A7CD4 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.2% C 0.140 H 266.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A7CD4
RGBrgb(90, 124, 212)
HSLhsl(223, 59%, 59%)
HSVhsv(223, 58%, 83%)
CMYKcmyk(57.5%, 41.5%, 0%, 16.9%)
CIE-LABlab(53.32, 14.15, -49.03)
CIE-LCHlch(53.32, 51.03, 286.10°)
OKLaboklab(60.25% -0.0088 -0.1394)
OKLCHoklch(60.25% 0.14 266.4)
XYZxyz(23.3037, 21.3406, 65.1657)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CD4 #D4B25A
analogous
#5AB9D4 #5A7CD4 #755AD4
triadic
#5A7CD4 #D45A7C #7CD45A
tetradic
#5A7CD4 #D45AB9 #D4B25A #5AD475
square
#5A7CD4 #D45AB9 #D4B25A #5AD475
split-complementary
#5A7CD4 #D4755A #B9D45A
monochromatic
#25428E #3259BF #5A7CD4 #8BA3E1 #BBC9ED

Accessibility & contrast

On white

3.99
#5A7CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5A7CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CD4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CD4#FFFFFF#000000##000000
##5A7CD41.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5685D7
Deuteranopia (green-blind)
#467AD2
Tritanopia (blue-blind)
#008F9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7cd4;
/* rgb */ color: rgb(90, 124, 212);
/* oklch */ color: oklch(60.2% 0.140 266.4);
Tailwind
colors: {
  custom: {
    50: '#92a1e2',
    500: '#5a7cd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cd4;
$custom-light: #92a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cd4",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 223.279,
    "s": 58.654,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60248,
    "c": 0.13967,
    "h": 266.4
  },
  "luminance": 0.21342
}

Semantic roles & 50–950 ramp

primary
#5A7CD4
secondary
#DDCFAD
accent
#B646E2
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5A7CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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