#5A7DCA#5A7DCA

#5A7DCA is a mid, vivid blue. Relative luminance 0.211; OKLCH L 59.9% C 0.125 H 264.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5A7DCA
RGBrgb(90, 125, 202)
HSLhsl(221, 51%, 57%)
HSVhsv(221, 55%, 79%)
CMYKcmyk(55.4%, 38.1%, 0%, 20.8%)
CIE-LABlab(53.06, 10.27, -43.77)
CIE-LCHlch(53.06, 44.96, 283.21°)
OKLaboklab(59.88% -0.012 -0.124)
OKLCHoklch(59.88% 0.125 264.5)
XYZxyz(22.2071, 21.1034, 58.7688)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DCA #CAA75A
analogous
#5AB5CA #5A7DCA #6F5ACA
triadic
#5A7DCA #CA5A7D #7DCA5A
tetradic
#5A7DCA #CA5AB5 #CAA75A #5ACA6F
square
#5A7DCA #CA5AB5 #CAA75A #5ACA6F
split-complementary
#5A7DCA #CA6F5A #B5CA5A
monochromatic
#294480 #385DAF #5A7DCA #88A1D9 #B7C6E8

Accessibility & contrast

On white

4.02
#5A7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5A7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DCA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DCA#FFFFFF#000000##000000
##5A7DCA1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CD
Deuteranopia (green-blind)
#507AC8
Tritanopia (blue-blind)
#148E9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7dca;
/* rgb */ color: rgb(90, 125, 202);
/* oklch */ color: oklch(59.9% 0.125 264.5);
Tailwind
colors: {
  custom: {
    50: '#90a2da',
    500: '#5a7dca',
    950: '#000000',
  },
}
SCSS
$custom: #5a7dca;
$custom-light: #90a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7dca",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 221.25,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59876,
    "c": 0.12455,
    "h": 264.5
  },
  "luminance": 0.21105
}

Semantic roles & 50–950 ramp

primary
#5A7DCA
secondary
#D7C8A9
accent
#AF4DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #5A7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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