#5A7CD2#5A7CD2

#5A7CD2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.1% C 0.137 H 266.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5A7CD2
RGBrgb(90, 124, 210)
HSLhsl(223, 57%, 59%)
HSVhsv(223, 57%, 82%)
CMYKcmyk(57.1%, 41%, 0%, 17.6%)
CIE-LABlab(53.21, 13.49, -48.07)
CIE-LCHlch(53.21, 49.93, 285.68°)
OKLaboklab(60.13% -0.0092 -0.1366)
OKLCHoklch(60.13% 0.137 266.1)
XYZxyz(23.0530, 21.2403, 63.8452)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CD2 #D2B05A
analogous
#5AB8D2 #5A7CD2 #745AD2
triadic
#5A7CD2 #D25A7C #7CD25A
tetradic
#5A7CD2 #D25AB8 #D2B05A #5AD274
square
#5A7CD2 #D25AB8 #D2B05A #5AD274
split-complementary
#5A7CD2 #D2745A #B8D25A
monochromatic
#26438C #335ABC #5A7CD2 #8AA2DF #BAC8EC

Accessibility & contrast

On white

4.00
#5A7CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#5A7CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CD2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CD2#FFFFFF#000000##000000
##5A7CD21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5785D5
Deuteranopia (green-blind)
#487AD0
Tritanopia (blue-blind)
#008F9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7cd2;
/* rgb */ color: rgb(90, 124, 210);
/* oklch */ color: oklch(60.1% 0.137 266.1);
Tailwind
colors: {
  custom: {
    50: '#91a1e0',
    500: '#5a7cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cd2;
$custom-light: #91a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cd2",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 223,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.13689,
    "h": 266.1
  },
  "luminance": 0.21242
}

Semantic roles & 50–950 ramp

primary
#5A7CD2
secondary
#DCCEAC
accent
#B547E0
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5A7CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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