#5A6FEB#5A6FEB

#5A6FEB is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.2% C 0.187 H 272.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A6FEB
RGBrgb(90, 111, 235)
HSLhsl(231, 78%, 64%)
HSVhsv(231, 62%, 92%)
CMYKcmyk(61.7%, 52.8%, 0%, 7.8%)
CIE-LABlab(51.31, 29.76, -65.20)
CIE-LCHlch(51.31, 71.67, 294.53°)
OKLaboklab(59.17% 0.0071 -0.1871)
OKLCHoklch(59.17% 0.187 272.2)
XYZxyz(24.8913, 19.5386, 81.0408)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FEB #EBD65A
analogous
#5AB7EB #5A6FEB #8D5AEB
triadic
#5A6FEB #EB5A6F #6FEB5A
tetradic
#5A6FEB #EB5AB7 #EBD65A #5AEB8D
square
#5A6FEB #EB5AB7 #EBD65A #5AEB8D
split-complementary
#5A6FEB #EB8D5A #B7EB5A
monochromatic
#162DB5 #233FE4 #5A6FEB #919FF2 #C7CEF8

Accessibility & contrast

On white

4.28
#5A6FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5A6FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FEB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FEB#FFFFFF#000000##000000
##5A6FEB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81EF
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#008CA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a6feb;
/* rgb */ color: rgb(90, 111, 235);
/* oklch */ color: oklch(59.2% 0.187 272.2);
Tailwind
colors: {
  custom: {
    50: '#9698f2',
    500: '#5a6feb',
    950: '#000000',
  },
}
SCSS
$custom: #5a6feb;
$custom-light: #9698f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6feb",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 231.31,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59166,
    "c": 0.1872,
    "h": 272.2
  },
  "luminance": 0.19541
}

Semantic roles & 50–950 ramp

primary
#5A6FEB
secondary
#EAE3B7
accent
#BD0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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