#5A5FCA#5A5FCA

#5A5FCA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.8% C 0.163 H 277.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5A5FCA
RGBrgb(90, 95, 202)
HSLhsl(237, 51%, 57%)
HSVhsv(237, 55%, 79%)
CMYKcmyk(55.4%, 53%, 0%, 20.8%)
CIE-LABlab(45.11, 28.77, -56.47)
CIE-LCHlch(45.11, 63.38, 297.00°)
OKLaboklab(53.82% 0.021 -0.1615)
OKLCHoklch(53.82% 0.163 277.4)
XYZxyz(18.9659, 14.6211, 57.6884)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCA #CAC55A
analogous
#5A97CA #5A5FCA #8D5ACA
triadic
#5A5FCA #CA5A5F #5FCA5A
tetradic
#5A5FCA #CA5A97 #CAC55A #5ACA8D
square
#5A5FCA #CA5A97 #CAC55A #5ACA8D
split-complementary
#5A5FCA #CA8D5A #97CA5A
monochromatic
#292D80 #383DAF #5A5FCA #888CD9 #B7B9E8

Accessibility & contrast

On white

5.35
#5A5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5A5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FCA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FCA#FFFFFF#000000##FFFFFF
##5A5FCA1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216FCE
Deuteranopia (green-blind)
#0566C8
Tritanopia (blue-blind)
#1F778B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5fca;
/* rgb */ color: rgb(90, 95, 202);
/* oklch */ color: oklch(53.8% 0.163 277.4);
Tailwind
colors: {
  custom: {
    50: '#918cdb',
    500: '#5a5fca',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fca;
$custom-light: #918cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fca",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 237.321,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53815,
    "c": 0.16291,
    "h": 277.4
  },
  "luminance": 0.14622
}

Semantic roles & 50–950 ramp

primary
#5A5FCA
secondary
#D7D5A9
accent
#D54DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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