#5B5FF1#5B5FF1

#5B5FF1 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.8% C 0.214 H 276.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5B5FF1
RGBrgb(91, 95, 241)
HSLhsl(238, 84%, 65%)
HSVhsv(238, 62%, 95%)
CMYKcmyk(62.2%, 60.6%, 0%, 5.5%)
CIE-LABlab(47.95, 41.59, -74.00)
CIE-LCHlch(47.95, 84.89, 299.33°)
OKLaboklab(56.82% 0.0223 -0.2131)
OKLCHoklch(56.82% 0.214 276)
XYZxyz(24.2786, 16.7575, 85.1571)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FF1 #F1ED5B
analogous
#5BAAF1 #5B5FF1 #A25BF1
triadic
#5B5FF1 #F15B5F #5FF15B
tetradic
#5B5FF1 #F15BAA #F1ED5B #5BF1A2
square
#5B5FF1 #F15BAA #F1ED5B #5BF1A2
split-complementary
#5B5FF1 #F1A25B #AAF15B
monochromatic
#1015C1 #2328EC #5B5FF1 #9396F6 #CCCDFB

Accessibility & contrast

On white

4.83
#5B5FF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#5B5FF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FF1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FF1#FFFFFF#000000##FFFFFF
##5B5FF11.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F6
Deuteranopia (green-blind)
#006BEE
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b5ff1;
/* rgb */ color: rgb(91, 95, 241);
/* oklch */ color: oklch(56.8% 0.214 276.0);
Tailwind
colors: {
  custom: {
    50: '#988cf7',
    500: '#5b5ff1',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ff1;
$custom-light: #988cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ff1",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 241
  },
  "hsl": {
    "h": 238.4,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56818,
    "c": 0.21426,
    "h": 276
  },
  "luminance": 0.16759
}

Semantic roles & 50–950 ramp

primary
#5B5FF1
secondary
#EDECBA
accent
#DB05E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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