#5A5FC8#5A5FC8

#5A5FC8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.7% C 0.160 H 277.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A5FC8
RGBrgb(90, 95, 200)
HSLhsl(237, 50%, 57%)
HSVhsv(237, 55%, 78%)
CMYKcmyk(55%, 52.5%, 0%, 21.6%)
CIE-LABlab(44.98, 28.12, -55.53)
CIE-LCHlch(44.98, 62.25, 296.86°)
OKLaboklab(53.67% 0.0209 -0.1588)
OKLCHoklch(53.67% 0.16 277.5)
XYZxyz(18.7307, 14.5270, 56.4494)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FC8 #C8C35A
analogous
#5A96C8 #5A5FC8 #8C5AC8
triadic
#5A5FC8 #C85A5F #5FC85A
tetradic
#5A5FC8 #C85A96 #C8C35A #5AC88C
square
#5A5FC8 #C85A96 #C8C35A #5AC88C
split-complementary
#5A5FC8 #C88C5A #96C85A
monochromatic
#2A2E7E #393EAC #5A5FC8 #888CD7 #B6B8E7

Accessibility & contrast

On white

5.38
#5A5FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5A5FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FC8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FC8#FFFFFF#000000##FFFFFF
##5A5FC81.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246FCC
Deuteranopia (green-blind)
#0E66C6
Tritanopia (blue-blind)
#22778A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5fc8;
/* rgb */ color: rgb(90, 95, 200);
/* oklch */ color: oklch(53.7% 0.160 277.5);
Tailwind
colors: {
  custom: {
    50: '#918cd9',
    500: '#5a5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fc8;
$custom-light: #918cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fc8",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 237.273,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53674,
    "c": 0.16015,
    "h": 277.5
  },
  "luminance": 0.14528
}

Semantic roles & 50–950 ramp

primary
#5A5FC8
secondary
#D5D3A8
accent
#D34EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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