#5B5FAC#5B5FAC

#5B5FAC is a mid, vivid blue. Relative luminance 0.134; OKLCH L 51.9% C 0.120 H 279.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5B5FAC
RGBrgb(91, 95, 172)
HSLhsl(237, 33%, 52%)
HSVhsv(237, 47%, 67%)
CMYKcmyk(47.1%, 44.8%, 0%, 32.5%)
CIE-LABlab(43.34, 19.44, -41.84)
CIE-LCHlch(43.34, 46.14, 294.92°)
OKLaboklab(51.9% 0.019 -0.1186)
OKLCHoklch(51.9% 0.12 279.1)
XYZxyz(15.8507, 13.3863, 40.7703)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FAC #ACA85B
analogous
#5B88AC #5B5FAC #805BAC
triadic
#5B5FAC #AC5B5F #5FAC5B
tetradic
#5B5FAC #AC5B88 #ACA85B #5BAC80
square
#5B5FAC #AC5B88 #ACA85B #5BAC80
split-complementary
#5B5FAC #AC805B #88AC5B
monochromatic
#2F325D #444786 #5B5FAC #8487C1 #ACAED5

Accessibility & contrast

On white

5.71
#5B5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5B5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FAC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FAC#FFFFFF#000000##FFFFFF
##5B5FAC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406AAF
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#3E6F7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b5fac;
/* rgb */ color: rgb(91, 95, 172);
/* oklch */ color: oklch(51.9% 0.120 279.1);
Tailwind
colors: {
  custom: {
    50: '#8e8cc5',
    500: '#5b5fac',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fac;
$custom-light: #8e8cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fac",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 237.037,
    "s": 32.794,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.12007,
    "h": 279.1
  },
  "luminance": 0.13387
}

Semantic roles & 50–950 ramp

primary
#5B5FAC
secondary
#C3C1A0
accent
#C45FC9
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0C13
muted
#7E7D82

Preview Lab

Preview with #5B5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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