#5A5FEB#5A5FEB

#5A5FEB is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.3% C 0.207 H 275.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A5FEB
RGBrgb(90, 95, 235)
HSLhsl(238, 78%, 64%)
HSVhsv(238, 62%, 92%)
CMYKcmyk(61.7%, 59.6%, 0%, 7.8%)
CIE-LABlab(47.44, 39.49, -71.48)
CIE-LCHlch(47.44, 81.66, 298.92°)
OKLaboklab(56.28% 0.0214 -0.2057)
OKLCHoklch(56.28% 0.207 275.9)
XYZxyz(23.2992, 16.3544, 80.5101)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FEB #EBE65A
analogous
#5AA7EB #5A5FEB #9D5AEB
triadic
#5A5FEB #EB5A5F #5FEB5A
tetradic
#5A5FEB #EB5AA7 #EBE65A #5AEB9D
square
#5A5FEB #EB5AA7 #EBE65A #5AEB9D
split-complementary
#5A5FEB #EB9D5A #A7EB5A
monochromatic
#161BB5 #232AE4 #5A5FEB #9194F2 #C7C9F8

Accessibility & contrast

On white

4.92
#5A5FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5A5FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FEB#FFFFFF#000000##FFFFFF
##5A5FEB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5feb;
/* rgb */ color: rgb(90, 95, 235);
/* oklch */ color: oklch(56.3% 0.207 275.9);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5a5feb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5feb;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5feb",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 237.931,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56279,
    "c": 0.20681,
    "h": 275.9
  },
  "luminance": 0.16356
}

Semantic roles & 50–950 ramp

primary
#5A5FEB
secondary
#EAE8B7
accent
#D30BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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