#5A6AEF#5A6AEF

#5A6AEF is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.5% C 0.199 H 273.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A6AEF
RGBrgb(90, 106, 239)
HSLhsl(234, 82%, 65%)
HSVhsv(234, 62%, 94%)
CMYKcmyk(62.3%, 55.6%, 0%, 6.3%)
CIE-LABlab(50.35, 34.14, -68.99)
CIE-LCHlch(50.35, 76.98, 296.33°)
OKLaboklab(58.53% 0.0118 -0.1983)
OKLCHoklch(58.53% 0.199 273.4)
XYZxyz(24.9453, 18.7116, 83.9418)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6AEF #EFDF5A
analogous
#5AB5EF #5A6AEF #955AEF
triadic
#5A6AEF #EF5A6A #6AEF5A
tetradic
#5A6AEF #EF5AB5 #EFDF5A #5AEF95
square
#5A6AEF #EF5AB5 #EFDF5A #5AEF95
split-complementary
#5A6AEF #EF955A #B5EF5A
monochromatic
#1225BC #2238EA #5A6AEF #929CF4 #CACFFA

Accessibility & contrast

On white

4.43
#5A6AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5A6AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6AEF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6AEF#FFFFFF#000000##000000
##5A6AEF1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#008AA2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a6aef;
/* rgb */ color: rgb(90, 106, 239);
/* oklch */ color: oklch(58.5% 0.199 273.4);
Tailwind
colors: {
  custom: {
    50: '#9794f5',
    500: '#5a6aef',
    950: '#000000',
  },
}
SCSS
$custom: #5a6aef;
$custom-light: #9794f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6aef",
  "rgb": {
    "r": 90,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 233.557,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58531,
    "c": 0.19864,
    "h": 273.4
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#5A6AEF
secondary
#ECE7B9
accent
#C807DF
background
#FAF9FF
surface
#F3F1FE
border
#CDCBD6
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5A6AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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