#5A5FCE#5A5FCE

#5A5FCE is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.1% C 0.168 H 277.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5A5FCE
RGBrgb(90, 95, 206)
HSLhsl(237, 54%, 58%)
HSVhsv(237, 56%, 81%)
CMYKcmyk(56.3%, 53.9%, 0%, 19.2%)
CIE-LABlab(45.38, 30.07, -58.34)
CIE-LCHlch(45.38, 65.63, 297.26°)
OKLaboklab(54.1% 0.0212 -0.167)
OKLCHoklch(54.1% 0.168 277.2)
XYZxyz(19.4457, 14.8130, 60.2150)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCE #CEC95A
analogous
#5A99CE #5A5FCE #8F5ACE
triadic
#5A5FCE #CE5A5F #5FCE5A
tetradic
#5A5FCE #CE5A99 #CEC95A #5ACE8F
square
#5A5FCE #CE5A99 #CEC95A #5ACE8F
split-complementary
#5A5FCE #CE8F5A #99CE5A
monochromatic
#282C86 #363BB5 #5A5FCE #898DDC #B8BBEA

Accessibility & contrast

On white

5.30
#5A5FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5A5FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FCE
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FCE#FFFFFF#000000##FFFFFF
##5A5FCE1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1970D2
Deuteranopia (green-blind)
#0067CC
Tritanopia (blue-blind)
#18798D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5fce;
/* rgb */ color: rgb(90, 95, 206);
/* oklch */ color: oklch(54.1% 0.168 277.2);
Tailwind
colors: {
  custom: {
    50: '#928cde',
    500: '#5a5fce',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fce;
$custom-light: #928cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fce",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 206
  },
  "hsl": {
    "h": 237.414,
    "s": 54.206,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.16839,
    "h": 277.2
  },
  "luminance": 0.14814
}

Semantic roles & 50–950 ramp

primary
#5A5FCE
secondary
#D9D7AB
accent
#D74ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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