#5A7ECA#5A7ECA

#5A7ECA is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.1% C 0.123 H 263.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A7ECA
RGBrgb(90, 126, 202)
HSLhsl(221, 51%, 57%)
HSVhsv(221, 55%, 79%)
CMYKcmyk(55.4%, 37.6%, 0%, 20.8%)
CIE-LABlab(53.34, 9.67, -43.33)
CIE-LCHlch(53.34, 44.39, 282.58°)
OKLaboklab(60.09% -0.0131 -0.1227)
OKLCHoklch(60.09% 0.123 263.9)
XYZxyz(22.3344, 21.3579, 58.8112)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7ECA #CAA65A
analogous
#5AB6CA #5A7ECA #6E5ACA
triadic
#5A7ECA #CA5A7E #7ECA5A
tetradic
#5A7ECA #CA5AB6 #CAA65A #5ACA6E
square
#5A7ECA #CA5AB6 #CAA65A #5ACA6E
split-complementary
#5A7ECA #CA6E5A #B6CA5A
monochromatic
#294580 #385EAF #5A7ECA #88A2D9 #B7C6E8

Accessibility & contrast

On white

3.98
#5A7ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7ECA#FFFFFF#000000##000000
##5A7ECA1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F85CD
Deuteranopia (green-blind)
#517BC8
Tritanopia (blue-blind)
#148F9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7eca;
/* rgb */ color: rgb(90, 126, 202);
/* oklch */ color: oklch(60.1% 0.123 263.9);
Tailwind
colors: {
  custom: {
    50: '#90a3da',
    500: '#5a7eca',
    950: '#000000',
  },
}
SCSS
$custom: #5a7eca;
$custom-light: #90a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7eca",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 220.714,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6009,
    "c": 0.12339,
    "h": 263.9
  },
  "luminance": 0.2136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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