#5A5FD3#5A5FD3

#5A5FD3 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.5% C 0.175 H 277.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5A5FD3
RGBrgb(90, 95, 211)
HSLhsl(238, 58%, 59%)
HSVhsv(238, 57%, 83%)
CMYKcmyk(57.3%, 55%, 0%, 17.3%)
CIE-LABlab(45.72, 31.69, -60.66)
CIE-LCHlch(45.72, 68.44, 297.58°)
OKLaboklab(54.46% 0.0214 -0.1739)
OKLCHoklch(54.46% 0.175 277)
XYZxyz(20.0628, 15.0598, 63.4650)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FD3 #D3CE5A
analogous
#5A9CD3 #5A5FD3 #925AD3
triadic
#5A5FD3 #D35A5F #5FD35A
tetradic
#5A5FD3 #D35A9C #D3CE5A #5AD392
square
#5A5FD3 #D35A9C #D3CE5A #5AD392
split-complementary
#5A5FD3 #D3925A #9CD35A
monochromatic
#262A8D #3238BD #5A5FD3 #8A8EE0 #BBBDED

Accessibility & contrast

On white

5.23
#5A5FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5A5FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FD3
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FD3#FFFFFF#000000##FFFFFF
##5A5FD31.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0871D7
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#0A7A90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5fd3;
/* rgb */ color: rgb(90, 95, 211);
/* oklch */ color: oklch(54.5% 0.175 277.0);
Tailwind
colors: {
  custom: {
    50: '#938ce1',
    500: '#5a5fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fd3;
$custom-light: #938ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fd3",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 211
  },
  "hsl": {
    "h": 237.521,
    "s": 57.895,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5446,
    "c": 0.17518,
    "h": 277
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#5A5FD3
secondary
#DCDAAD
accent
#DB47E1
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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