#5A5FCC#5A5FCC

#5A5FCC is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.0% C 0.166 H 277.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5A5FCC
RGBrgb(90, 95, 204)
HSLhsl(237, 53%, 58%)
HSVhsv(237, 56%, 80%)
CMYKcmyk(55.9%, 53.4%, 0%, 20%)
CIE-LABlab(45.24, 29.42, -57.41)
CIE-LCHlch(45.24, 64.51, 297.13°)
OKLaboklab(53.96% 0.0211 -0.1643)
OKLCHoklch(53.96% 0.166 277.3)
XYZxyz(19.2043, 14.7164, 58.9436)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCC #CCC75A
analogous
#5A98CC #5A5FCC #8E5ACC
triadic
#5A5FCC #CC5A5F #5FCC5A
tetradic
#5A5FCC #CC5A98 #CCC75A #5ACC8E
square
#5A5FCC #CC5A98 #CCC75A #5ACC8E
split-complementary
#5A5FCC #CC8E5A #98CC5A
monochromatic
#292C83 #373CB2 #5A5FCC #898CDA #B7BAE9

Accessibility & contrast

On white

5.33
#5A5FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A5FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FCC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FCC#FFFFFF#000000##FFFFFF
##5A5FCC1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D70D0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#1C788C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5fcc;
/* rgb */ color: rgb(90, 95, 204);
/* oklch */ color: oklch(54.0% 0.166 277.3);
Tailwind
colors: {
  custom: {
    50: '#928cdc',
    500: '#5a5fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fcc;
$custom-light: #928cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fcc",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 237.368,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53956,
    "c": 0.16566,
    "h": 277.3
  },
  "luminance": 0.14718
}

Semantic roles & 50–950 ramp

primary
#5A5FCC
secondary
#D8D6AA
accent
#D64CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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