#5B5FEA#5B5FEA

#5B5FEA is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.3% C 0.205 H 276.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5B5FEA
RGBrgb(91, 95, 234)
HSLhsl(238, 77%, 64%)
HSVhsv(238, 61%, 92%)
CMYKcmyk(61.1%, 59.4%, 0%, 8.2%)
CIE-LABlab(47.43, 39.32, -70.93)
CIE-LCHlch(47.43, 81.10, 299.00°)
OKLaboklab(56.27% 0.0226 -0.204)
OKLCHoklch(56.27% 0.205 276.3)
XYZxyz(23.2530, 16.3472, 79.7559)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FEA #EAE65B
analogous
#5BA6EA #5B5FEA #9E5BEA
triadic
#5B5FEA #EA5B5F #5FEA5B
tetradic
#5B5FEA #EA5BA6 #EAE65B #5BEA9E
square
#5B5FEA #EA5BA6 #EAE65B #5BEA9E
split-complementary
#5B5FEA #EA9E5B #A6EA5B
monochromatic
#171BB4 #252AE3 #5B5FEA #9194F1 #C8C9F8

Accessibility & contrast

On white

4.92
#5B5FEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5B5FEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FEA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FEA#FFFFFF#000000##FFFFFF
##5B5FEA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#00819B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5fea;
/* rgb */ color: rgb(91, 95, 234);
/* oklch */ color: oklch(56.3% 0.205 276.3);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5b5fea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fea;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fea",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 238.322,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56265,
    "c": 0.20529,
    "h": 276.3
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

primary
#5B5FEA
secondary
#EAE8B7
accent
#D40CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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