#5A7AF4#5A7AF4

#5A7AF4 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.9% C 0.186 H 269.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A7AF4
RGBrgb(90, 122, 244)
HSLhsl(228, 88%, 65%)
HSVhsv(228, 63%, 96%)
CMYKcmyk(63.1%, 50%, 0%, 4.3%)
CIE-LABlab(54.68, 26.04, -64.78)
CIE-LCHlch(54.68, 69.81, 291.90°)
OKLaboklab(61.9% -0.0023 -0.1857)
OKLCHoklch(61.9% 0.186 269.3)
XYZxyz(27.4996, 22.6219, 88.4877)
Luminance0.2262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AF4 #F4D45A
analogous
#5AC7F4 #5A7AF4 #875AF4
triadic
#5A7AF4 #F45A7A #7AF45A
tetradic
#5A7AF4 #F45AC7 #F4D45A #5AF487
square
#5A7AF4 #F45AC7 #F4D45A #5AF487
split-complementary
#5A7AF4 #F4875A #C7F45A
monochromatic
#0D34C6 #214CF0 #5A7AF4 #93A8F8 #CDD6FC

Accessibility & contrast

On white

3.80
#5A7AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#5A7AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AF4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AF4#FFFFFF#000000##000000
##5A7AF41.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#358AF8
Deuteranopia (green-blind)
#007CF1
Tritanopia (blue-blind)
#0096AC
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7af4;
/* rgb */ color: rgb(90, 122, 244);
/* oklch */ color: oklch(61.9% 0.186 269.3);
Tailwind
colors: {
  custom: {
    50: '#97a0f8',
    500: '#5a7af4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7af4;
$custom-light: #97a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7af4",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 227.532,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61895,
    "c": 0.1857,
    "h": 269.3
  },
  "luminance": 0.22624
}

Semantic roles & 50–950 ramp

primary
#5A7AF4
secondary
#EFE4BB
accent
#B501E4
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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