#5A5FDA#5A5FDA

#5A5FDA is a mid, vivid blue. Relative luminance 0.154; OKLCH L 55.0% C 0.185 H 276.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A5FDA
RGBrgb(90, 95, 218)
HSLhsl(238, 63%, 60%)
HSVhsv(238, 59%, 85%)
CMYKcmyk(58.7%, 56.4%, 0%, 14.5%)
CIE-LABlab(46.20, 33.96, -63.87)
CIE-LCHlch(46.20, 72.34, 298.00°)
OKLaboklab(54.98% 0.0215 -0.1833)
OKLCHoklch(54.98% 0.185 276.7)
XYZxyz(20.9595, 15.4185, 68.1877)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FDA #DAD55A
analogous
#5A9FDA #5A5FDA #955ADA
triadic
#5A5FDA #DA5A5F #5FDA5A
tetradic
#5A5FDA #DA5A9F #DAD55A #5ADA95
square
#5A5FDA #DA5A9F #DAD55A #5ADA95
split-complementary
#5A5FDA #DA955A #9FDA5A
monochromatic
#222798 #2D33CA #5A5FDA #8C8FE5 #BEC0F0

Accessibility & contrast

On white

5.14
#5A5FDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A5FDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FDA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FDA#FFFFFF#000000##FFFFFF
##5A5FDA1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DE
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#007C93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5fda;
/* rgb */ color: rgb(90, 95, 218);
/* oklch */ color: oklch(55.0% 0.185 276.7);
Tailwind
colors: {
  custom: {
    50: '#948ce6',
    500: '#5a5fda',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fda;
$custom-light: #948ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fda",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 237.656,
    "s": 63.366,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54976,
    "c": 0.18457,
    "h": 276.7
  },
  "luminance": 0.1542
}

Semantic roles & 50–950 ramp

primary
#5A5FDA
secondary
#E0DEAF
accent
#C41ACB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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