#5A7AF2#5A7AF2

#5A7AF2 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.8% C 0.183 H 269.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5A7AF2
RGBrgb(90, 122, 242)
HSLhsl(227, 85%, 65%)
HSVhsv(227, 63%, 95%)
CMYKcmyk(62.8%, 49.6%, 0%, 5.1%)
CIE-LABlab(54.55, 25.37, -63.87)
CIE-LCHlch(54.55, 68.72, 291.66°)
OKLaboklab(61.76% -0.0025 -0.183)
OKLCHoklch(61.76% 0.183 269.2)
XYZxyz(27.1976, 22.5011, 86.8971)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AF2 #F2D25A
analogous
#5AC6F2 #5A7AF2 #865AF2
triadic
#5A7AF2 #F25A7A #7AF25A
tetradic
#5A7AF2 #F25AC6 #F2D25A #5AF286
square
#5A7AF2 #F25AC6 #F2D25A #5AF286
split-complementary
#5A7AF2 #F2865A #C6F25A
monochromatic
#0F35C2 #214CEE #5A7AF2 #93A8F6 #CBD5FB

Accessibility & contrast

On white

3.82
#5A7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5A7AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AF2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AF2#FFFFFF#000000##000000
##5A7AF21.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#378AF6
Deuteranopia (green-blind)
#097CF0
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7af2;
/* rgb */ color: rgb(90, 122, 242);
/* oklch */ color: oklch(61.8% 0.183 269.2);
Tailwind
colors: {
  custom: {
    50: '#96a0f7',
    500: '#5a7af2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7af2;
$custom-light: #96a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7af2",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 227.368,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61759,
    "c": 0.18304,
    "h": 269.2
  },
  "luminance": 0.22504
}

Semantic roles & 50–950 ramp

primary
#5A7AF2
secondary
#EEE3BA
accent
#B304E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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