#5A6AF2#5A6AF2

#5A6AF2 is a mid, highly saturated blue. Relative luminance 0.189; OKLCH L 58.8% C 0.203 H 273.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A6AF2
RGBrgb(90, 106, 242)
HSLhsl(234, 85%, 65%)
HSVhsv(234, 63%, 95%)
CMYKcmyk(62.8%, 56.2%, 0%, 5.1%)
CIE-LABlab(50.56, 35.13, -70.33)
CIE-LCHlch(50.56, 78.62, 296.55°)
OKLaboklab(58.75% 0.0119 -0.2022)
OKLCHoklch(58.75% 0.203 273.4)
XYZxyz(25.3922, 18.8904, 86.2953)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6AF2 #F2E25A
analogous
#5AB6F2 #5A6AF2 #965AF2
triadic
#5A6AF2 #F25A6A #6AF25A
tetradic
#5A6AF2 #F25AB6 #F2E25A #5AF296
square
#5A6AF2 #F25AB6 #F2E25A #5AF296
split-complementary
#5A6AF2 #F2965A #B6F25A
monochromatic
#0F22C2 #2137EE #5A6AF2 #939DF6 #CBD0FB

Accessibility & contrast

On white

4.39
#5A6AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5A6AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6AF2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6AF2#FFFFFF#000000##000000
##5A6AF21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#008BA4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a6af2;
/* rgb */ color: rgb(90, 106, 242);
/* oklch */ color: oklch(58.8% 0.203 273.4);
Tailwind
colors: {
  custom: {
    50: '#9794f7',
    500: '#5a6af2',
    950: '#000000',
  },
}
SCSS
$custom: #5a6af2;
$custom-light: #9794f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6af2",
  "rgb": {
    "r": 90,
    "g": 106,
    "b": 242
  },
  "hsl": {
    "h": 233.684,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58754,
    "c": 0.20256,
    "h": 273.4
  },
  "luminance": 0.18893
}

Semantic roles & 50–950 ramp

primary
#5A6AF2
secondary
#EEE8BA
accent
#CA04E2
background
#FAF9FF
surface
#F3F1FF
border
#CDCBD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5A6AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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