#5A7AF3#5A7AF3

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

Color values

HEX#5A7AF3
RGBrgb(90, 122, 243)
HSLhsl(227, 86%, 65%)
HSVhsv(227, 63%, 95%)
CMYKcmyk(63%, 49.8%, 0%, 4.7%)
CIE-LABlab(54.62, 25.70, -64.32)
CIE-LCHlch(54.62, 69.27, 291.78°)
OKLaboklab(61.83% -0.0024 -0.1844)
OKLCHoklch(61.83% 0.184 269.3)
XYZxyz(27.3482, 22.5614, 87.6902)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AF3 #F3D35A
analogous
#5AC6F3 #5A7AF3 #865AF3
triadic
#5A7AF3 #F35A7A #7AF35A
tetradic
#5A7AF3 #F35AC6 #F3D35A #5AF386
square
#5A7AF3 #F35AC6 #F3D35A #5AF386
split-complementary
#5A7AF3 #F3865A #C6F35A
monochromatic
#0E34C4 #214CEF #5A7AF3 #93A8F7 #CCD6FB

Accessibility & contrast

On white

3.81
#5A7AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5A7AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AF3
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AF3#FFFFFF#000000##000000
##5A7AF31.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#368AF7
Deuteranopia (green-blind)
#027CF1
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7af3;
/* rgb */ color: rgb(90, 122, 243);
/* oklch */ color: oklch(61.8% 0.184 269.3);
Tailwind
colors: {
  custom: {
    50: '#97a0f8',
    500: '#5a7af3',
    950: '#000000',
  },
}
SCSS
$custom: #5a7af3;
$custom-light: #97a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7af3",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 243
  },
  "hsl": {
    "h": 227.451,
    "s": 86.441,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61827,
    "c": 0.18437,
    "h": 269.3
  },
  "luminance": 0.22564
}

Semantic roles & 50–950 ramp

primary
#5A7AF3
secondary
#EEE3BB
accent
#B403E3
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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