#5A5DEF#5A5DEF

#5A5DEF is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.3% C 0.214 H 276.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5A5DEF
RGBrgb(90, 93, 239)
HSLhsl(239, 82%, 65%)
HSVhsv(239, 62%, 94%)
CMYKcmyk(62.3%, 61.1%, 0%, 6.3%)
CIE-LABlab(47.28, 41.98, -73.99)
CIE-LCHlch(47.28, 85.07, 299.57°)
OKLaboklab(56.26% 0.0229 -0.2131)
OKLCHoklch(56.26% 0.214 276.1)
XYZxyz(23.7057, 16.2324, 83.5286)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DEF #EFEC5A
analogous
#5AA8EF #5A5DEF #A25AEF
triadic
#5A5DEF #EF5A5D #5DEF5A
tetradic
#5A5DEF #EF5AA8 #EFEC5A #5AEFA2
square
#5A5DEF #EF5AA8 #EFEC5A #5AEFA2
split-complementary
#5A5DEF #EFA25A #A8EF5A
monochromatic
#1216BC #2226EA #5A5DEF #9294F4 #CACBFA

Accessibility & contrast

On white

4.94
#5A5DEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5A5DEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DEF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DEF#FFFFFF#000000##FFFFFF
##5A5DEF1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#006AEC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5def;
/* rgb */ color: rgb(90, 93, 239);
/* oklch */ color: oklch(56.3% 0.214 276.1);
Tailwind
colors: {
  custom: {
    50: '#988bf5',
    500: '#5a5def',
    950: '#000000',
  },
}
SCSS
$custom: #5a5def;
$custom-light: #988bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5def",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 238.792,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56257,
    "c": 0.2143,
    "h": 276.1
  },
  "luminance": 0.16234
}

Semantic roles & 50–950 ramp

primary
#5A5DEF
secondary
#ECEBB9
accent
#DA07DF
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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