#5B5FFF#5B5FFF

#5B5FFF is a mid, highly saturated blue. Relative luminance 0.176; OKLCH L 58.0% C 0.232 H 275.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5B5FFF
RGBrgb(91, 95, 255)
HSLhsl(239, 100%, 68%)
HSVhsv(239, 64%, 100%)
CMYKcmyk(64.3%, 62.7%, 0%, 0%)
CIE-LABlab(49.04, 46.10, -80.04)
CIE-LCHlch(49.04, 92.36, 299.94°)
OKLaboklab(57.95% 0.0216 -0.2308)
OKLCHoklch(57.95% 0.232 275.3)
XYZxyz(26.4507, 17.6263, 96.5967)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FFF #FFFB5B
analogous
#5BB1FF #5B5FFF #A95BFF
triadic
#5B5FFF #FF5B5F #5FFF5B
tetradic
#5B5FFF #FF5BB1 #FFFB5B #5BFFA9
square
#5B5FFF #FF5BB1 #FFFB5B #5BFFA9
split-complementary
#5B5FFF #FFA95B #B1FF5B
monochromatic
#0005E0 #1E23FF #5B5FFF #989BFF #D5D6FF

Accessibility & contrast

On white

4.64
#5B5FFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5B5FFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FFF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FFF#FFFFFF#000000##FFFFFF
##5B5FFF1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#006DFC
Tritanopia (blue-blind)
#0088A6
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b5fff;
/* rgb */ color: rgb(91, 95, 255);
/* oklch */ color: oklch(58.0% 0.232 275.3);
Tailwind
colors: {
  custom: {
    50: '#9b8dff',
    500: '#5b5fff',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fff;
$custom-light: #9b8dff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fff",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 255
  },
  "hsl": {
    "h": 238.537,
    "s": 100,
    "l": 67.843
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.2318,
    "h": 275.3
  },
  "luminance": 0.17629
}

Semantic roles & 50–950 ramp

primary
#5B5FFF
secondary
#F4F3C2
accent
#E000E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5B5FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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