#5A7BCA#5A7BCA

#5A7BCA is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.5% C 0.127 H 265.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5A7BCA
RGBrgb(90, 123, 202)
HSLhsl(222, 51%, 57%)
HSVhsv(222, 55%, 79%)
CMYKcmyk(55.4%, 39.1%, 0%, 20.8%)
CIE-LABlab(52.51, 11.49, -44.64)
CIE-LCHlch(52.51, 46.09, 284.43°)
OKLaboklab(59.45% -0.0097 -0.1265)
OKLCHoklch(59.45% 0.127 265.6)
XYZxyz(21.9565, 20.6022, 58.6853)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BCA #CAA95A
analogous
#5AB3CA #5A7BCA #715ACA
triadic
#5A7BCA #CA5A7B #7BCA5A
tetradic
#5A7BCA #CA5AB3 #CAA95A #5ACA71
square
#5A7BCA #CA5AB3 #CAA95A #5ACA71
split-complementary
#5A7BCA #CA715A #B3CA5A
monochromatic
#294380 #385BAF #5A7BCA #88A0D9 #B7C5E8

Accessibility & contrast

On white

4.10
#5A7BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5A7BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BCA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BCA#FFFFFF#000000##000000
##5A7BCA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A83CD
Deuteranopia (green-blind)
#4D79C8
Tritanopia (blue-blind)
#158C99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a7bca;
/* rgb */ color: rgb(90, 123, 202);
/* oklch */ color: oklch(59.5% 0.127 265.6);
Tailwind
colors: {
  custom: {
    50: '#90a0da',
    500: '#5a7bca',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bca;
$custom-light: #90a0da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bca",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 202
  },
  "hsl": {
    "h": 222.321,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5945,
    "c": 0.12692,
    "h": 265.6
  },
  "luminance": 0.20604
}

Semantic roles & 50–950 ramp

primary
#5A7BCA
secondary
#D7C9A9
accent
#B14DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5A7BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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