#5A7BD2#5A7BD2

#5A7BD2 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.9% C 0.138 H 266.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5A7BD2
RGBrgb(90, 123, 210)
HSLhsl(224, 57%, 59%)
HSVhsv(224, 57%, 82%)
CMYKcmyk(57.1%, 41.4%, 0%, 17.6%)
CIE-LABlab(52.94, 14.10, -48.50)
CIE-LCHlch(52.94, 50.51, 286.21°)
OKLaboklab(59.92% -0.0081 -0.1378)
OKLCHoklch(59.92% 0.138 266.6)
XYZxyz(22.9283, 20.9909, 63.8037)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BD2 #D2B15A
analogous
#5AB7D2 #5A7BD2 #755AD2
triadic
#5A7BD2 #D25A7B #7BD25A
tetradic
#5A7BD2 #D25AB7 #D2B15A #5AD275
square
#5A7BD2 #D25AB7 #D2B15A #5AD275
split-complementary
#5A7BD2 #D2755A #B7D25A
monochromatic
#26428C #3359BC #5A7BD2 #8AA1DF #BAC8EC

Accessibility & contrast

On white

4.04
#5A7BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5A7BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BD2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BD2#FFFFFF#000000##000000
##5A7BD21.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5684D5
Deuteranopia (green-blind)
#4679D0
Tritanopia (blue-blind)
#008E9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a7bd2;
/* rgb */ color: rgb(90, 123, 210);
/* oklch */ color: oklch(59.9% 0.138 266.6);
Tailwind
colors: {
  custom: {
    50: '#91a0e0',
    500: '#5a7bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bd2;
$custom-light: #91a0e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bd2",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 223.5,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59919,
    "c": 0.13809,
    "h": 266.6
  },
  "luminance": 0.20993
}

Semantic roles & 50–950 ramp

primary
#5A7BD2
secondary
#DCCFAC
accent
#B647E0
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5A7BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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