#5A5FC2#5A5FC2

#5A5FC2 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.3% C 0.152 H 277.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A5FC2
RGBrgb(90, 95, 194)
HSLhsl(237, 46%, 56%)
HSVhsv(237, 54%, 76%)
CMYKcmyk(53.6%, 51%, 0%, 23.9%)
CIE-LABlab(44.59, 26.19, -52.69)
CIE-LCHlch(44.59, 58.84, 296.43°)
OKLaboklab(53.26% 0.0204 -0.1504)
OKLCHoklch(53.26% 0.152 277.7)
XYZxyz(18.0432, 14.2520, 52.8286)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FC2 #C2BD5A
analogous
#5A93C2 #5A5FC2 #895AC2
triadic
#5A5FC2 #C25A5F #5FC25A
tetradic
#5A5FC2 #C25A93 #C2BD5A #5AC289
square
#5A5FC2 #C25A93 #C2BD5A #5AC289
split-complementary
#5A5FC2 #C2895A #93C25A
monochromatic
#2C2F76 #3C41A3 #5A5FC2 #878AD3 #B3B6E3

Accessibility & contrast

On white

5.45
#5A5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A5FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FC2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FC2#FFFFFF#000000##FFFFFF
##5A5FC21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC6
Deuteranopia (green-blind)
#1E65C0
Tritanopia (blue-blind)
#2A7587
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5fc2;
/* rgb */ color: rgb(90, 95, 194);
/* oklch */ color: oklch(53.3% 0.152 277.7);
Tailwind
colors: {
  custom: {
    50: '#908cd5',
    500: '#5a5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fc2;
$custom-light: #908cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fc2",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 237.115,
    "s": 46.018,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53259,
    "c": 0.1518,
    "h": 277.7
  },
  "luminance": 0.14253
}

Semantic roles & 50–950 ramp

primary
#5A5FC2
secondary
#D2CFA6
accent
#CF52D6
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5A5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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